diff --git a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Users/Queries/GetSingleUser/GetSingleUserQueryHandler.cs b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Users/Queries/GetSingleUser/GetSingleUserQueryHandler.cs index 2d79108e..39fd66b3 100644 --- a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Users/Queries/GetSingleUser/GetSingleUserQueryHandler.cs +++ b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Users/Queries/GetSingleUser/GetSingleUserQueryHandler.cs @@ -40,6 +40,7 @@ public class GetSingleUserQueryHandler : IBaseQueryHandler roles = user.RoleUser.Select(x => x.RoleId).ToList(); var response = new GetSingleUserResponse { + Id = user.Id, FullName = user.FullName, UserName = user.UserName, ProfilePhotoPath = user.ProfilePhotoPath, @@ -71,6 +72,7 @@ public class GetSingleUserQueryHandler : IBaseQueryHandler /// نام و نام خانوادگی /// diff --git a/ProgramManager/src/Infrastructure/GozareshgirProgramManager.Infrastructure/Services/User/PmUserQueryService.cs b/ProgramManager/src/Infrastructure/GozareshgirProgramManager.Infrastructure/Services/User/PmUserQueryService.cs index 80e43524..1d6f9f04 100644 --- a/ProgramManager/src/Infrastructure/GozareshgirProgramManager.Infrastructure/Services/User/PmUserQueryService.cs +++ b/ProgramManager/src/Infrastructure/GozareshgirProgramManager.Infrastructure/Services/User/PmUserQueryService.cs @@ -17,6 +17,6 @@ public class PmUserQueryService : IPmUserQueryService { var query = new GetSingleUserQuery(accountId.ToString()); var result = await _mediator.Send(query); - return result.Data?.AccountId ?? null; + return result.Data?.Id ?? null; } } \ No newline at end of file