5
Answers

routing in mvc5

How to remove controller name from all the routes in the url in mvc5 application,when i specify a route in route config it affets only one route?
 
this is my try,but it works for only one route.. 
 
routes.MapRoute(
"About",
"{action}",
new {controller = "Home", action = "About", id = UrlParameter.Optional }
);
 
Answers (5)