Mvc 5 Attribute Routing

I am trying to use the build-in attribute routing that comes with Mvc 5 , previously I used the package AttributeRoutingon Nuget.

But how to set up routes, indicating whether this is for a Get or Post request?

There AttributeRoutingwere attributes in GET()and POST(), but in Mvc 5 is there only an attribute Route()?

+4
source share
1 answer

You can still use the attribute Postin MVC5, it is fully supported.

" , , . , .

+3

All Articles