comparison Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 141:a5ff4de4a1d3

EditorForModel en Nuevo Evento y Proponer
author Nelo@Guinea.neluz.int
date Mon, 01 Aug 2011 00:10:20 -0300
parents 6f1041301797
children a2b14da4902f
comparison
equal deleted inserted replaced
140:3639803112c6 141:a5ff4de4a1d3
11 public IEnumerable<EventoDto> ProximosEventos { get; set; } 11 public IEnumerable<EventoDto> ProximosEventos { get; set; }
12 } 12 }
13 13
14 public class EventoNewModel 14 public class EventoNewModel
15 { 15 {
16 public EventoNewModel()
17 {
18 Tipos = EventoModelHelper.GetTiposEventos();
19 }
20
21 [Required] 16 [Required]
22 public int Tipo { get; set; } 17 [UIHint("TipoEvento")]
18 public int TipoEvento { get; set; }
23 19
24 [Required] 20 [Required]
25 public string Titulo { get; set; } 21 public string Titulo { get; set; }
26 22
27 [Required] 23 [Required]
30 [Required] 26 [Required]
31 public DateTime Fecha { get; set; } 27 public DateTime Fecha { get; set; }
32 28
33 [Url] 29 [Url]
34 public string UrlInvitacion { get; set; } 30 public string UrlInvitacion { get; set; }
35
36 public IEnumerable<TipoEventoModel> Tipos { get; private set; }
37 }
38
39 public class TipoEventoModel
40 {
41 public int TipoEvento { get; set; }
42 public string TipoEventoStr { get; set; }
43 } 31 }
44 32
45 public class EventoEditModel 33 public class EventoEditModel
46 { 34 {
47 [HiddenInput(DisplayValue = false)] 35 [HiddenInput(DisplayValue = false)]