I got error message when I called Stored Procedures "GetCustOutstanding" from Web API and want to send data to kendo grid. How can I fix that? Thanks.
Error message: "The result of a query cannot be enumerated more than once."
IQueryable<GetCustOutstanding_Result> result = db.GetCustOutstanding().OrderBy(x=>x.NetDay).AsQueryable();
return result.ToDataSourceResult(request.Take, request.Skip, request.Sort, request.Filter); <=== error in this line