Esempio n. 1
0
        public IActionResult GetAll()
        {
            var list    = _services.GetAll();
            var listMap = _mapper.Map <IEnumerable <ProjectTypesModel> >(list);

            return(Ok(listMap));
        }
 public IActionResult GetAll()
 {
     try
     {
         return(Ok(_projectType.GetAll()));
     }
     catch (Exception e)
     {
         return(GetError(e));
     }
 }
Esempio n. 3
0
 public IEnumerable <ProjectType> GetProjectTypes()
 {
     return(projectTypeService.GetAll());
 }