You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
When I am trying to use AcceptVerbsAttribute, I don't want to write verbs literally (e.g. [AcceptVerbs("GET", "POST")]) so I try to reuse the verbs defined in HttpMethods (e.g. [AcceptVerbs(HttpMethods.Get, HttpMethods.Post)]). But this is not acceptable by compiler.
How about making verbs in HttpMethods as const string rather than static readonly string so that they can be more widely used?
The text was updated successfully, but these errors were encountered:
When I am trying to use
AcceptVerbsAttribute
, I don't want to write verbs literally (e.g.[AcceptVerbs("GET", "POST")]
) so I try to reuse the verbs defined inHttpMethods
(e.g.[AcceptVerbs(HttpMethods.Get, HttpMethods.Post)]
). But this is not acceptable by compiler.How about making verbs in
HttpMethods
asconst string
rather thanstatic readonly string
so that they can be more widely used?The text was updated successfully, but these errors were encountered: