Explain attribute based routing in MVC?
1322
15-Oct-2019
Updated on 22-Sep-2020
Anonymous User
15-Oct-2019Its feature is introduced in MVC 5. In pursuance of that the "Route" attribute, we can define the URL structure. For instance, in the below code we have decorated the "GotoAbout" action with the route attribute. According to the route attribute that the "GotoAbout" can be invoked using the URL structure "Users/about".