asp.net mvc routing characteristics (MapMvcAttributeRoutes) applications

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u012835032/article/details/51160824
ASP.NET MVC can be routed directly to the characteristics of each of the action specifying an address in the controller, the configuration with respect to the following route RouteConfig more flexible and convenient.
Usage is very simple, as long as the registered route when it RouteConfig properties routing plus back on.


jq call


On a code

routes.MapMvcAttributeRoutes ();
. 1
Action marked directly at the controller like

[Route ( "the Data / the Find")]
1
just learning, not very in-depth, please point out deficiencies. Thank
---------------------
Author: Zhengxiao Chen
Source: CSDN
Original: https: //blog.csdn.net/u012835032/article/details/51160824
Copyright: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/Jeely/p/10956755.html