Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Models/PropuestaModel.cs @ 118:b74734a1a755
Manejo de eventos por estado
author | Nelo@Kenia.neluz.int |
---|---|
date | Wed, 22 Jun 2011 09:32:59 -0300 |
parents | 80c22175c9b5 |
children | a5ff4de4a1d3 |
comparison
equal
deleted
inserted
replaced
117:7ef7e4bb71f6 | 118:b74734a1a755 |
---|---|
3 using System.Web.Mvc; | 3 using System.Web.Mvc; |
4 using DataAnnotationsExtensions; | 4 using DataAnnotationsExtensions; |
5 | 5 |
6 namespace AltNetHispano.Agendas.Web.Models | 6 namespace AltNetHispano.Agendas.Web.Models |
7 { | 7 { |
8 public class PropuestaIndexModel | 8 public class PropuestaNewModel |
9 { | 9 { |
10 public IEnumerable<PropuestaDto> Propuestas { get; set; } | 10 public PropuestaNewModel() |
11 } | 11 { |
12 Tipos = EventoModelHelper.GetTiposEventos(); | |
13 } | |
12 | 14 |
13 public class PropuestaNewModel | 15 [Required] |
14 { | 16 public int Tipo { get; set; } |
15 public PropuestaNewModel() | |
16 { | |
17 Tipos = EventoModelHelper.GetTiposEventos(); | |
18 } | |
19 | 17 |
20 [Required] | 18 [Required] |
21 public int Tipo { get; set; } | 19 public string Titulo { get; set; } |
22 | 20 |
23 [Required] | 21 public string Ponente { get; set; } |
24 public string Titulo { get; set; } | |
25 | 22 |
26 public string Ponente { get; set; } | 23 [Url] |
24 public string UrlInvitacion { get; set; } | |
27 | 25 |
28 [Url] | 26 public IEnumerable<TipoEventoModel> Tipos { get; private set; } |
29 public string UrlInvitacion { get; set; } | 27 } |
30 | |
31 public IEnumerable<TipoEventoModel> Tipos { get; private set; } | |
32 } | |
33 | |
34 public class PropuestaEditModel | |
35 { | |
36 [HiddenInput(DisplayValue = false)] | |
37 public string Id { get; set; } | |
38 | |
39 [Required] | |
40 public string Titulo { get; set; } | |
41 | |
42 public string Ponente { get; set; } | |
43 | |
44 [Url] | |
45 public string UrlInvitacion { get; set; } | |
46 } | |
47 | |
48 | |
49 public class PropuestaDto | |
50 { | |
51 public string Id { get; set; } | |
52 public string Titulo { get; set; } | |
53 public string Ponente { get; set; } | |
54 } | |
55 } | 28 } |