0

I have been spending time on ASP.NET MVC 4 for a while now and having worked on other MVC frameworks like the Spring/RoR I, for some reason, dont see ASP.NET MVC doing what the others could do. I am specifically talking about the routing behavior of .Net MVC and it was wondering it is still so rigid. Why did MS chose to do routing in a diff config file, why not just annotate the methods in the controller, is there something wrong with it? Am I missing something?

4

1 回答 1

1

With nuget, you can install Attribute-Routing, which will be automatically included in ASP.Net MVC5

http://attributerouting.net/

于 2013-09-24T14:21:17.730 回答