With MVC 5 and attribute based routing, you gain finer control of your routes at both the controller and action level. Enabling attribute routing in your project is simple, just add a call to routes. MapMvcAttributeRoutes(); in your RegisterRoutes function .
Read moreWhat are Route values in MVC?
Route values are the values extracted from a URL based on a given route template . Each route parameter in a template will have an associated route value and is stored as a string pair in a dictionary. They can be used during model binding, as you’ll see in chapter 6.
Read moreHow can we set attribute routing in MVC?
To enable Attribute Routing, we need to call the MapMvcAttributeRoutes method of the route collection class during configuration.
Read moreWhat are the different properties of MVC routes?
Properties of Route
Read more