Files
PruebaGentle/Backend/PruebaGentle.Core/DTOs/RegisterDto.cs

22 lines
531 B
C#
Raw Normal View History

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