are these things the same?
[HttpPost/HttpGet] vs. [AcceptVerbs(HttpVerbs.Post/Get)]
if not where is a difference?
Yes, absolutely the same. [HttpPost/HttpGet] were introduced in ASP.NET MVC 2 to reduce the keystrokes we have to type :-) [AcceptVerbs(HttpVerbs.Post/Get)] could still be used and behave the same although if you are writing new code I would recommend the first.
[HttpPost/HttpGet]
[AcceptVerbs(HttpVerbs.Post/Get)]
1.4m articles
1.4m replys
5 comments
57.0k users