I have a C# MVC project. I want to build statement in client app controller method to fetch JSON from web.api, for paging/sort in the view template. Can the sort order be passed to this code as a variable?
var container = new CourseService.Container(uri);
var query = container.Courses.OrderByDescending(c => c.Name).Skip(skip).Take(take).ToList();