Commit c1dd7b99 authored by Almouhannad's avatar Almouhannad

(B) Edit get user response

parent 7c8c4cbd
......@@ -8,6 +8,7 @@ public class GetAllDoctorUsersResponse
{
public class GetAllDoctorUsersResponseItem
{
public int Id { get; set; }
public string UserName { get; set; } = null!;
public string FullName { get; set; } = null!;
}
......@@ -24,6 +25,7 @@ public class GetAllDoctorUsersResponse
return Result.Failure<GetAllDoctorUsersResponse>(PersistenceErrors.NotFound);
var doctorUserItem = new GetAllDoctorUsersResponseItem
{
Id = doctorUser.Id,
FullName = doctorUser.Doctor.PersonalInfo.FullName,
UserName = doctorUser.User.UserName
};
......
......@@ -8,6 +8,7 @@ public class GetAllReceptionistUsersResponse
{
public class GetAllReceptionistUsersResponseItem
{
public int Id { get; set; }
public string UserName { get; set; } = null!;
public string FullName { get; set; } = null!;
}
......@@ -22,6 +23,7 @@ public class GetAllReceptionistUsersResponse
return Result.Failure<GetAllReceptionistUsersResponse>(PersistenceErrors.NotFound);
var receptionistUserItem = new GetAllReceptionistUsersResponseItem
{
Id = receptionistUser.Id,
UserName = receptionistUser.User.UserName,
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