Last active
April 23, 2017 22:48
-
-
Save diegobersano/22e34a4df7dae2c1578cb4ce7a45cf46 to your computer and use it in GitHub Desktop.
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