コード例 #1
0
        public async Task <List <DropdownDTO> > GetMemberRoles()
        {
            var roles = await _projectMemberRepository.GetMemberRoles();

            var rolesDto = roles.Select(role => new DropdownDTO
            {
                Label = role.Role,
                Value = role.IdRoleMember
            }).ToList();

            return(rolesDto);
        }