I’d like to access in my ActionFilter a property. This propert is a collection.
Usually I access the values using the valueprovider like this
filterContext.Controller.ValueProvider.GetValue("Prop");
but this isn’t working in case of a collection.
Is there way to get my collection ?
You could use
filterContext.ActionParameters. Example:Model:
Action filter:
Controller:
Request:
/?collection[0]=foo&collection[1]=bar