Pass argument to a Controller from Action Filter

you can use

 context.ActionArguments["dataComingFromActionFilter"] = "data";

for updating existing action parameter. If you need to add new parameter, then

context.ActionArguments.Add("dataComingFromActionFilter", "data"); 

then you can reach it through Controller Action


In the attribute set values into Items collection of HttpContext:

context.HttpContext.Items.Add("DataFromAttribute", date);

And In the controller read them in the same way:

this.HttpContext.Items["DataFromAttribute"];