public static T GetAttribute <T>(this ActionDescriptor d)
     where T : Attribute
 {
     return(d.AsControllerActionDescriptor().GetAttribute <T>());
 }
Exemple #2
0
 public static MethodInfo GetMethodInfo(this ActionDescriptor actionDescriptor)
 {
     return(actionDescriptor.AsControllerActionDescriptor().MethodInfo);
 }