mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-07-01 19:12:57 +00:00
feat: Add status to user viewmodel
This commit is contained in:
parent
ebf9cd36d7
commit
17bb1cbcf1
@ -11,6 +11,7 @@ public sealed class UserViewModel
|
|||||||
public string FirstName { get; set; } = string.Empty;
|
public string FirstName { get; set; } = string.Empty;
|
||||||
public string LastName { get; set; } = string.Empty;
|
public string LastName { get; set; } = string.Empty;
|
||||||
public UserRole Role { get; set; }
|
public UserRole Role { get; set; }
|
||||||
|
public UserStatus Status { get; set; }
|
||||||
|
|
||||||
public static UserViewModel FromUser(User user)
|
public static UserViewModel FromUser(User user)
|
||||||
{
|
{
|
||||||
@ -20,7 +21,8 @@ public sealed class UserViewModel
|
|||||||
Email = user.Email,
|
Email = user.Email,
|
||||||
FirstName = user.FirstName,
|
FirstName = user.FirstName,
|
||||||
LastName = user.LastName,
|
LastName = user.LastName,
|
||||||
Role = user.Role
|
Role = user.Role,
|
||||||
|
Status = user.Status
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user