public static bool IsCommandAction(this HttpActionContext controllerContext) { return(controllerContext.FirstCommandParameter() != null); }