ASP.NET MVC AcceptVerbs and registering routes
- by Pure.Krome
Hi Folks,
do I have to register the HttpVerb constraint in my route definition (when i'm registering routes) if i have decorated my action method with the [AcceptVerbs(..)] attribute already?
eg. i have this.
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection formCollection)
{ .. }
do i need to add this to the route that refers to this action, as a constraint?