示例#1
0
        public async Task <ProjectMemberDTO> GetAsync(Guid id)
        {
            var entity = await _projectMemberRepository.GetByIdAsync(id);

            if (entity == null)
            {
                throw new Exception("Project member not found");
            }
            return(entity.ToModel());
        }