Below is a get method in my controller. It returns a JSON containing boolean "success', string "message" and a list. How can i query the list using OData? Generally if the return type was IQueryable then the following would work api/Category/all?$top=5 to get the top 5....But what should i do in my case?
// Get all Categories [HttpGet] [ActionName("all")] [Queryable] public HttpResponseMessage GetCategoryList() { var categoryList = this.Repository.GetCategories().AsQueryable<Category>(); return Request.CreateResponse(HttpStatusCode.OK, new ResponseMessage<IQueryable<Category>> { success = true, data = categoryList }); } public class ResponseMessage<T> where T: class { public string message; public bool success; public T data; }