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