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; }=true; } }