Commit c1dd7b99 authored by Almouhannad's avatar Almouhannad

(B) Edit get user response

parent 7c8c4cbd
...@@ -8,6 +8,7 @@ public class GetAllDoctorUsersResponse ...@@ -8,6 +8,7 @@ public class GetAllDoctorUsersResponse
{ {
public class GetAllDoctorUsersResponseItem public class GetAllDoctorUsersResponseItem
{ {
public int Id { get; set; }
public string UserName { get; set; } = null!; public string UserName { get; set; } = null!;
public string FullName { get; set; } = null!; public string FullName { get; set; } = null!;
} }
...@@ -24,6 +25,7 @@ public class GetAllDoctorUsersResponse ...@@ -24,6 +25,7 @@ public class GetAllDoctorUsersResponse
return Result.Failure<GetAllDoctorUsersResponse>(PersistenceErrors.NotFound); return Result.Failure<GetAllDoctorUsersResponse>(PersistenceErrors.NotFound);
var doctorUserItem = new GetAllDoctorUsersResponseItem var doctorUserItem = new GetAllDoctorUsersResponseItem
{ {
Id = doctorUser.Id,
FullName = doctorUser.Doctor.PersonalInfo.FullName, FullName = doctorUser.Doctor.PersonalInfo.FullName,
UserName = doctorUser.User.UserName UserName = doctorUser.User.UserName
}; };
......
...@@ -8,6 +8,7 @@ public class GetAllReceptionistUsersResponse ...@@ -8,6 +8,7 @@ public class GetAllReceptionistUsersResponse
{ {
public class GetAllReceptionistUsersResponseItem public class GetAllReceptionistUsersResponseItem
{ {
public int Id { get; set; }
public string UserName { get; set; } = null!; public string UserName { get; set; } = null!;
public string FullName { get; set; } = null!; public string FullName { get; set; } = null!;
} }
...@@ -22,6 +23,7 @@ public class GetAllReceptionistUsersResponse ...@@ -22,6 +23,7 @@ public class GetAllReceptionistUsersResponse
return Result.Failure<GetAllReceptionistUsersResponse>(PersistenceErrors.NotFound); return Result.Failure<GetAllReceptionistUsersResponse>(PersistenceErrors.NotFound);
var receptionistUserItem = new GetAllReceptionistUsersResponseItem var receptionistUserItem = new GetAllReceptionistUsersResponseItem
{ {
Id = receptionistUser.Id,
UserName = receptionistUser.User.UserName, UserName = receptionistUser.User.UserName,
FullName = receptionistUser.PersonalInfo.FullName FullName = receptionistUser.PersonalInfo.FullName
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment