public async Task <IActionResult> GetProjects() { if (!ModelState.IsValid) { return(ValidationError()); } List <Project> projects = await ProjectProvider.GetProjectsAsync(); List <ProjectDto> projectsDto = Mapper.Map <List <Project>, List <ProjectDto> >(projects); return(FromContent(projectsDto)); }