This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Consider making verbs in HttpMethods
as const string
rather than static readonly string
#795
Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels