Esempio n. 1
0
 static bool ActionAcceptsMethod(ActionDescriptor action, string method) =>
 action.GetHttpMethods().Contains(method, StringComparer.OrdinalIgnoreCase);
Esempio n. 2
0
 public static string GetHttpMethod(this ActionDescriptor actionDescriptor)
 {
     return(actionDescriptor
            .GetHttpMethods()
            .Single());
 }