Пример #1
0
        public async Task <IActionResult> findProjectsByUserId(Guid userId)
        {
            var project = await _projectsService.FindAllProjectByUserId(userId);

            List <ProjectInfoDTO> projectInfoDTO = new List <ProjectInfoDTO>();

            _mapper.Map(project, projectInfoDTO);
            return(Ok(new ResponseCtrMsg <List <ProjectInfoDTO> >(CtrResult.Success)
            {
                ResultObj = projectInfoDTO
            }));
        }