Routing in ASP.NET MVC, showing username in URL
On its own, your routing will not work because if the url was …/Product meaning that you wanted to navigate to the Index() method of ProductController, it would match your first route (and assume “Product” is the username. You need to add a route constraint to your roue definitions that returns true if the username … Read more