Aleena Saviour

Aleena Saviour

  • NA
  • 519
  • 88.2k

routing in mvc5

May 1 2018 12:06 AM
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)