コード例 #1
0
        public async Task <IActionResult> GetProjects()
        {
            var projects = await _repo.GetProjects();

            var projectsToReturn = _mapper.Map <IEnumerable <ProjectForListDto> >(projects);

            return(Ok(projectsToReturn));
        }