I know it’s possible to have get and post, but I’m using Backbone.js where its methods send with DELETE and PUT also and I don’t really want to edit the “framework.”
I’m wondering if ASP.net MVC 3 or 4 (or has it been possible since the beginning?) can have Action Methods that receive DELETE or PUT?
(I know there was a question like this but it was dated 2008 and asp.net mvc 3 or 4 didn’t exist yet.)
Yes, they can have
[HttpDelete]and[HttpPut].These
ActionMethodattributes will restrict the request to thoseHTTP Verbs.