finalizare 1.0
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Admin
|
||||
{
|
||||
[Key] public Guid Id { get; private set; } = Guid.NewGuid();
|
||||
public string Name { get; private set; } = string.Empty;
|
||||
public string Email { get; private set; } = string.Empty;
|
||||
public string Password { get; private set; } = string.Empty;
|
||||
|
||||
public void SetId(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public void SetName(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public void SetEmail(string email)
|
||||
{
|
||||
Email = email;
|
||||
}
|
||||
|
||||
public void SetPassword(string password)
|
||||
{
|
||||
Password = password;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user