Esempio n. 1
0
        public async Task <IActionResult> findProjectById(int projectId)
        {
            var project = await _projectsService.FindProjectById(projectId);

            ProjectInfoDTO projectInfoDTO = new ProjectInfoDTO();

            _mapper.Map(project, projectInfoDTO);
            return(Ok(new ResponseCtrMsg <ProjectInfoDTO>(CtrResult.Success)
            {
                ResultObj = projectInfoDTO
            }));
        }
 public async ValueTask <ProjectSearchDto> GetById([FromRoute] Guid id)
 {
     return(await _projectsService.FindProjectById(id));
 }