views:

241

answers:

2

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

+7  A: 

Yes HttpVerbs.

http://msdn.microsoft.com/en-us/library/system.web.mvc.httpverbs%28VS.100%29.aspx

NickLarsen
That is not a string!
JoelFan
If you're looking for strings, see my answer.
SLaks
You could use ToString, like this: HttpVerbs.Delete.ToString()
Richard
+3  A: 

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

SLaks