Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC "GET" and "POST" constants

Does ASP.NET MVC have any constants for the the strings "GET" and "POST"?

like image 286
JoelFan Avatar asked Dec 28 '09 15:12

JoelFan


2 Answers

You can also use the System.Net.WebRequestMethods.Http class. (WebRequestMethods.Http.Get and WebRequestMethods.Http.Post)

like image 184
SLaks Avatar answered Nov 17 '22 11:11

SLaks


Yes HttpVerbs.

http://msdn.microsoft.com/en-us/library/system.web.mvc.httpverbs(VS.100).aspx

like image 7
Nick Larsen Avatar answered Nov 17 '22 12:11

Nick Larsen