Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

A space in "controller=Product" trigger an error , Should i submit a bug report ?

$
0
0

Consider the following code in the configure method  of the startup class :

app.UseMvc(routes =>
                    {
                        routes.MapRoute(name: "default", template: "{controller=Product}/{action=List}/{id?}");
                    }
                );

this code work, but if i separated controller and the equal sign with a space i get error ,for example like so:

app.UseMvc(
                routes =>
                    {
                        routes.MapRoute(name: "default", template: "{controller = Product}/{action=List}/{id?}");
                    }
                );

>> Status Code: 404; Not Found      

should i submit a bug report ?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>