Compare commits

..

No commits in common. "af1b0cbbb93eedcc7cf161760a63a37b7e75bb50" and "3eaca227000fcba6bf3df7e5fe21374ba63921f5" have entirely different histories.

2 changed files with 2 additions and 29 deletions

View File

@ -139,16 +139,5 @@ namespace IRaCIS.Core.Application.Contracts.DTO
} }
public class TrialSelectUserBasicInfo
{
public Guid UserRoleId { get; set; }
public string FullName { get; set; }
public string UserName { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
}
} }

View File

@ -315,23 +315,7 @@ namespace IRaCIS.Core.Application.Service
} }
public async Task<List<TrialSelectUserBasicInfo>> GetTrialUserRoleList(Guid trialId, UserTypeEnum? userTypeEnum)
{
var list = await _trialIdentityUserRepository.Where(t => t.TrialId == trialId)
.SelectMany(t => t.TrialUserRoleList)
.WhereIf(userTypeEnum != null, t => t.UserRole.UserTypeEnum == userTypeEnum)
.Select(t => new TrialSelectUserBasicInfo()
{
FullName = t.TrialUser.IdentityUser.FullName,
UserRoleId = t.UserRole.Id,
UserName = t.TrialUser.IdentityUser.UserName,
Phone = t.TrialUser.IdentityUser.Phone,
Email = t.TrialUser.IdentityUser.EMail
})
.ToListAsync();
return list;
}
} }
} }