public object Get(DataSourceRequest request) { var response = new ApiErrorDetail(); try { var inspectionList = _inspectionService.GetAllInspections(); var kendoList = inspectionList.ToDataSourceResult(request); return(kendoList); } catch (Exception ex) { return(ErrorHelper.KendoCatchBloackResponse(response, ex)); } }
public ActionResult GetAllInspections() { var inspections = _inspectionService.GetAllInspections(); if (inspections != null) { return(Ok(inspections)); } return(NotFound()); }