This commit is contained in:
mmrbnjd
2024-04-17 17:34:34 +03:30
parent 3f0a37a08b
commit 3f3c283fef
5 changed files with 115 additions and 78 deletions

View File

@@ -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;
}
}

View File

@@ -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; }
}
}