15 lines
550 B
C#
15 lines
550 B
C#
|
|
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.Diagnostics.CodeAnalysis;
|
|||
|
|
|
|||
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Common;
|
|||
|
|
|
|||
|
|
public class AuthLoginRequest
|
|||
|
|
{
|
|||
|
|
[Required, NotNull, StringLength(maximumLength: 150, MinimumLength = 3, ErrorMessage = "Login Id must be between 4 and 30 characters.")]
|
|||
|
|
public string LoginId { get; set; }
|
|||
|
|
|
|||
|
|
[Required, NotNull, StringLength(maximumLength: 150, MinimumLength = 5, ErrorMessage = "Password must be between 1 and 30 characters.")]
|
|||
|
|
public string Password { get; set; }
|
|||
|
|
}
|