var action = context.ActionDescriptor as ControllerActionDescriptor; var permission = action.MethodInfo.GetCustomAttribute<PermissionAttribute>();
大概就是这样。
var action = context.ActionDescriptor as ControllerActionDescriptor; var permission = action.MethodInfo.GetCustomAttribute<PermissionAttribute>();
大概就是这样。