I have a controller like so:
1.
public
async Task<ActionResult> ActionMethod([DataSourceRequest] DataSourceRequest request){...}
When I set a filter on the UI, the controller receives a request object populated with a filter object.
When I examine the traffic between the client and server I see a string for filter like this:
filter: FirstName~contains~'John'
I imagine there is a Model Binder some where that knows how to instantiate a filter object based on that string.
In this case, the results would be filtered to all entries with a First Name containing John.
My question is: Is there a way to pass a similar string to the Model Binder from another action?
For example,
From another action, I want to create a string like "FirstName~contains~'Mary'" and then Redirect to the "ActionMethod" action pasted above. When the "ActionMethod" is called, I would like the filter object to be constructed so that results would be filtered to all entries with a First Name containing Mary, instead of John. Is this possible?