I use the ejGrid and additionally Multi-Column Sorting option on few columns.
The parameter order by in request are different depend on my choice, like:
CompanyName,Id
Id,CompanyName desc
Id desc,CompanyName
Is there any library which can be used in ASP. NET Web Api to parse the options from parameter orderby in reqest.
To apply selected options in linq queries?
For query with parameter orderby: CompanyName, Id
In C# linq orderby(CompanyName) and ThenOrderby(Id)