Пример #1
0
 public IActionResult KendoReadSlitting([DataSourceRequest] DataSourceRequest request, long?dispatchId = null, long?buyerId = null, long?consigneeId = null, bool?isFinalize = false)
 {
     if (!request.Sorts.Any())
     {
         request.Sorts.Add(new SortDescriptor("SlittingRollNo", ListSortDirection.Ascending));
     }
     return(Json(CustomRepository.GetDispatchSlittingList(buyerId, consigneeId, dispatchId, isFinalize).ToDataSourceResult(request)));
 }