This repository has been archived on 2026-04-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/backend/login-counter/app.Model/DTOs/AuthUserDTO.cs
T
2022-02-20 13:43:25 +01:00

27 lines
733 B
C#

namespace app.Model.DTOs
{
public class AuthUserDTO
{
public long Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string EMail { get; set; }
public string Password { get; set; }
public bool IsConfirmed { get; set; }
public AuthRoles AuthRole { get; set; }
public AuthUser ToAuthUser()
{
return new AuthUser
{
Id = this.Id,
FirstName = this.FirstName,
LastName = this.LastName,
EMail = this.EMail,
Password = this.Password,
AuthRole = this.AuthRole
};
}
}
}