diff --git a/IRaCIS.Core.Application/Service/Management/DTO/UserModel.cs b/IRaCIS.Core.Application/Service/Management/DTO/UserModel.cs index 8ebc3e220..40499fbbb 100644 --- a/IRaCIS.Core.Application/Service/Management/DTO/UserModel.cs +++ b/IRaCIS.Core.Application/Service/Management/DTO/UserModel.cs @@ -252,7 +252,7 @@ namespace IRaCIS.Application.Contracts public class UserAccountDto { - public Guid UserId { get; set; } + public Guid Id { get; set; } public string UserName { get; set; } = string.Empty; diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index d48de3c29..2799f9559 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -382,7 +382,7 @@ namespace IRaCIS.Core.Application.Service } } - var list = await _identityUserRepository.Where(t => t.EMail == email && t.Status == UserStateEnum.Enable).Select(t => new UserAccountDto() { UserId = t.Id, UserName = t.UserName, UserRealName = t.FullName }).ToListAsync(); + var list = await _identityUserRepository.Where(t => t.EMail == email && t.Status == UserStateEnum.Enable).Select(t => new UserAccountDto() { Id= t.Id, UserName = t.UserName, UserRealName = t.FullName }).ToListAsync(); @@ -397,7 +397,7 @@ namespace IRaCIS.Core.Application.Service /// /// [AllowAnonymous] - [HttpGet("{userId:guid}/{newPwd}")] + [HttpGet("{identityUserId:guid}/{newPwd}")] public async Task AnonymousSetPassword(Guid identityUserId, string newPwd) {