22 lines
531 B
C#
22 lines
531 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace PruebaGentle.Core.DTOs;
|
||
|
|
|
||
|
|
public class RegisterDto
|
||
|
|
{
|
||
|
|
[Required]
|
||
|
|
[StringLength(50, MinimumLength = 3)]
|
||
|
|
public string Username { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[StringLength(100, MinimumLength = 6)]
|
||
|
|
public string Password { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[EmailAddress]
|
||
|
|
public string Email { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[StringLength(100)]
|
||
|
|
public string NombreCompleto { get; set; } = string.Empty;
|
||
|
|
}
|