I will try to make this as concise as possible.
- The web page contains a table that allows you to filter and sort
- Changes to filtering and sorting should be reflected in the URL so that the user can add bookmarks or share filters.
The question is: what is an effective agreement to allow sorting and filtering syntax to be part of the URL and easily interpret / use it on the server without having to write a bunch of custom code that interprets it?
I did some research, and I had to deal with UD OData conventions, and I like the way they do it. http://www.odata.org/developers/protocols/uri-conventions
More research shows that the MVC 4 web API allows you to use this convention by returning IQueryable. It looks fantastic, except for one part ... I am not implementing a RESTful API at the moment and that it all seems to work. So, how can I use something like OData and still return a View or PartialView? Is there something that will parse the OData URI convention into a C # object?
If anyone has an understanding of this problem or suggestions, Iβm all ears.
Zifik source share