Compare commits
No commits in common. "42e9c58d7abf02e90e4f6db734ee2559831f4edc" and "e6f91b9c4b784b5feb68896be8bf1106a8a215f6" have entirely different histories.
42e9c58d7a
...
e6f91b9c4b
|
|
@ -521,20 +521,6 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public async Task<UserDetailDTO?> GetUserByEmail(string email)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
var user = await _identityUserRepository.Where(t => t.EMail == email).ProjectTo<UserDetailDTO>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
|
||||||
|
|
||||||
if (user != null)
|
|
||||||
{
|
|
||||||
user.AccountList = await _userRoleRepository.Where(t => t.IdentityUserId == user.Id).ProjectTo<UserAccountInfo>(_mapper.ConfigurationProvider).OrderBy(t => t.UserTypeShortName).ToListAsync();
|
|
||||||
|
|
||||||
}
|
|
||||||
return user;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue