I was looking at the Routing
Concepts of MVC and specifically at the below line:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // Route Pattern
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Default values.
);
Everything's fine, but I don't get the significance of the Route Name
.
Is it just a term out there ? or is there anything significant with it ?
Am I missing using it or where are the places it is used in MVC 4 ?
Thanks in advance.
Am I missing using it or where are the places it is used in MVC 4 ?
There are Helper methods that use the route name.
See for example the RouteLink
and RouteUrl methods :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With