0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-06-30 02:31:08 +00:00

feat: Add status to user viewmodel

This commit is contained in:
alex289 2023-08-31 20:49:27 +02:00
parent ebf9cd36d7
commit 17bb1cbcf1
No known key found for this signature in database
GPG Key ID: 573F77CD2D87F863

View File

@ -11,6 +11,7 @@ public sealed class UserViewModel
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public UserRole Role { get; set; }
public UserStatus Status { get; set; }
public static UserViewModel FromUser(User user)
{
@ -20,7 +21,8 @@ public sealed class UserViewModel
Email = user.Email,
FirstName = user.FirstName,
LastName = user.LastName,
Role = user.Role
Role = user.Role,
Status = user.Status
};
}
}