code_junkie

Any way to handle Put and Delete verbs in ASP.Net MVC?

Nov 10th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. [AcceptVerbs("delete")]
  2. public object DoDeleteAction()
  3.  
  4. [AcceptVerbs(HttpVerbs.Get)]
  5. public ActionResult Index()
  6. { ... }
  7.  
  8. [AcceptVerbs(HttpVerbs.Post)]
  9. public ActionResult Update()
  10. { ... }
  11.  
  12. [AcceptVerbs(HttpVerbs.Delete)]
  13. public ActionResult Delete()
  14. { ... }
Add Comment
Please, Sign In to add comment