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)); } }
public IEnumerable <ProjectType> GetProjectTypes() { return(projectTypeService.GetAll()); }