public ActionResult <Inspection> GetById(int id) { var inspection = _inspectionService.Get(id); if (inspection == null) { return(NotFound()); } return(inspection); }
public object GetAll() { var output = new ResponseDetail(); try { var inspectionList = _inspectionService.Get(); output.Data = inspectionList; output.Success = true; return(output); } catch (Exception ex) { output.Success = false; output.Message = ex.Message; return(output); } }
public IEnumerable <InspectionViewModel> Get(string objectI) { return(_inspectionService.Get(objectI)); }