Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        public ActionResult GetAllInspections()
        {
            var inspections = _inspectionService.GetAllInspections();

            if (inspections != null)
            {
                return(Ok(inspections));
            }

            return(NotFound());
        }