I am having an action and attribute as following, i have over-ridden OnActionExecuting and want to read attribute in that method
[MyAttribute(integer)]
public ActionResult MyAction()
{
}
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
//here i want to read integer passed to action using Attribute
}
Try it:
Controller
Filter