Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 89:24e9488ac152
mapeo de property UrlInvitacion entre viewmodel y entity
author | jorge.rowies |
---|---|
date | Tue, 31 May 2011 16:31:24 -0300 |
parents | 7e9ffde4022d |
children | 80c22175c9b5 |
line wrap: on
line source
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Web.Mvc; using DataAnnotationsExtensions; namespace AltNetHispano.Agendas.Web.Models { public class EventoIndexModel { public IEnumerable<EventoDto> ProximosEventos { get; set; } } public class EventoNewModel { [Required] public string Titulo { get; set; } [Required] public string Ponente { get; set; } [Required] public DateTime Fecha { get; set; } [Url] public string UrlInvitacion { get; set; } } public class EventoEditModel { [HiddenInput(DisplayValue = false)] public string Id { get; set; } [Required] public string Titulo { get; set; } [Required] public string Ponente { get; set; } [Required] public DateTime? Fecha { get; set; } [Url] public string UrlInvitacion { get; set; } } public class EventoDto { public string Id { get; set; } public string Titulo { get; set; } public DateTime Fecha { get; set; } } }