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 }
);

Prateek SinglaRank #1,452 · 1.1K reputationPosted Apr 30, 2018, 8:24 PM EDT
Aleena SaviourRank #4,788 · 325 reputationPosted Apr 30, 2018, 8:51 PM EDT
Aleena SaviourRank #4,788 · 325 reputationPosted Apr 30, 2018, 9:59 PM EDT
Prateek SinglaRank #1,452 · 1.1K reputationPosted Apr 30, 2018, 10:06 PM EDT
Prateek SinglaRank #1,452 · 1.1K reputationPosted Apr 30, 2018, 9:28 PM EDT