0 votes
in C Sharp by

 Explain attribute based routing in MVC?

1 Answer

0 votes
by

In ASP.NET MVC 5.0 we have a new attribute route,by using the “Route” attribute we can define the URL structure. For example, in the below code we have decorated the “GotoAbout” action with the route attribute. The route attribute says that the “GotoAbout” can be invoked using the URL structure “Users/about.”

...