I have a query string coming in from a jquery grid that I am trying to parse into parameters within C# Web API, but I am unable to get one of the properties to populate.
Query String:
?current=1&rowCount=10&sort[received]=desc&sort[email]=asc&sort[id]=desc&searchPhrase=
Method:
public IEnumerable<IUserDto> Get(int current, int rowCount, NameValueCollection sort, string searchPhrase)
The 'sort' parameter is always null, all others populate correctly. I have tried multiple types for the parameter but no matter what I have tried I always end up with a null parameter.
Any direction or suggestion on parameter type would be appreciated.