Skip to content

Instantly share code, notes, and snippets.

@diegobersano

diegobersano/User.cs

Last active Apr 23, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.