14 lines
435 B
C#
14 lines
435 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Apimanager_backend.Dtos
|
|
{
|
|
public class UserLoginDto
|
|
{
|
|
[MaxLength(20,ErrorMessage = "The maximum username is 20 characters")]
|
|
public string UserName { get; set; }
|
|
[MaxLength(50,ErrorMessage = "The maximum password is 50 characters")]
|
|
[Required(ErrorMessage = "password is required")]
|
|
public string Password { get; set; }
|
|
}
|
|
}
|