4

I am trying to use the build-in attribute routing that comes with Mvc 5, previously I was using the AttributeRouting package on Nuget.

But how do i set up routes by specifying whether it is for a Get or Post request?

In AttributeRouting there was GET() and POST() attributes, but in Mvc 5 there is only a Route() Attribute?

4

1 回答 1

3

您仍然可以Post在 MVC5 中使用该属性,它完全受支持。

“早期的路由风格,称为基于约定的路由,仍然得到完全支持。事实上,您可以在同一个项目中结合这两种技术。”

资源

于 2013-10-20T14:08:34.993 回答