Ejemplo n.º 1
0
    public ActionResult <Inspection> GetById(int id)
    {
        var inspection = _inspectionService.Get(id);

        if (inspection == null)
        {
            return(NotFound());
        }

        return(inspection);
    }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public IEnumerable <InspectionViewModel> Get(string objectI)
 {
     return(_inspectionService.Get(objectI));
 }