【发布时间】:2016-01-13 12:48:30
【问题描述】:
MVC 4
我有一个用这样的动作过滤器装饰的动作:
[ViewPermission(PermissionType.GlobalUser)]
public ActionResult General()
{
var permissionType = // trying to access the value passed to the filter ie. PermissionType.GlobalUser value
return View();
}
有没有办法从动作本身的阳离子过滤器中获取属性?
提前致谢。
【问题讨论】:
标签: asp.net-mvc-4 c#-4.0