This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace WebApi.Contracts | |
{ | |
using System; | |
using System.ComponentModel.DataAnnotations; | |
/// <summary> | |
/// Representa un usuario de la aplicación. | |
/// </summary> | |
public class User | |
{ | |
/// <summary> | |
/// Identificador. | |
/// </summary> | |
[Required] | |
public int Id { get; set; } | |
/// <summary> | |
/// Nombre. | |
/// </summary> | |
[Required] | |
[MinLength(10)] | |
[MaxLength(200)] | |
public string Name { get; set; } | |
/// <summary> | |
/// Fecha de nacimiento. | |
/// </summary> | |
[Required] | |
public DateTime BirthDate { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment