diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index d4430bcb6..d48de3c29 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -531,8 +531,11 @@ namespace IRaCIS.Core.Application.Service /// /// xiuga - public async Task GetUser() + public async Task GetUser(Guid identityUserId) { + + identityUserId = identityUserId != Guid.Empty ? identityUserId : _userInfo.IdentityUserId; + var user = await _identityUserRepository.Where(t => t.Id == _userInfo.IdentityUserId).ProjectTo(_mapper.ConfigurationProvider).FirstOrDefaultAsync(); user.AccountList = await _userRepository.Where(t => t.IdentityUserId == _userInfo.IdentityUserId).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();