我有以下的一个操作和属性,我已经重写了 OnActionExecuting
方法,并希望在该方法中读取属性。
[MyAttribute(integer)]
public ActionResult MyAction()
{
}
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
//here i want to read integer passed to action using Attribute
}