...
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
namespace Shared.DTOs
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class Authentication
|
||||
{
|
||||
[MinLength(3,ErrorMessage =("نام کاربری باید حداقل 3 کاراکتر باشد"))]
|
||||
public string Username { get; set; }
|
||||
[MinLength(3, ErrorMessage = ("کلمه عبور باید حداقل 3 کاراکتر باشد"))]
|
||||
public string Password { get; set; }
|
||||
public bool Remember { get; set; }=false;
|
||||
}
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ namespace Shared.DTOs
|
||||
public string FullName { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string Photo { get; set; }
|
||||
public ICollection<CompanyAuthenticationDTO> Companies { get; set; } = new List<CompanyAuthenticationDTO>();
|
||||
public CompanyAuthenticationDTO Company { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user