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)]
2.1m questions
2.1m answers
60 comments
57.0k users