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 SinglaPosted May 1, 2018, 12:24 AM
Prateek SinglaPosted May 1, 2018, 2:06 AM
Aleena SaviourPosted May 1, 2018, 1:59 AM
Prateek SinglaPosted May 1, 2018, 1:28 AM
Aleena SaviourPosted May 1, 2018, 12:51 AM