annotate Agendas/trunk/src/Agendas.Web/Models/AgendaModel.cs @ 10:c62b77fc33f4

website inicial
author nelo@MTEySS.neluz.int
date Sun, 13 Mar 2011 18:51:06 -0300
parents
children ed6d842abf42
rev   line source
10
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
1 using System;
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
2 using System.Collections.Generic;
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
3 using System.ComponentModel.DataAnnotations;
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
4 using System.Web.Mvc;
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
5
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
6 namespace Agendas.Web.Models
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
7 {
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
8 public class AgendaIndexModel
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
9 {
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
10 public IEnumerable<EventoDto> ProximosEventos { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
11 }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
12
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
13 public class AgendaNewModel
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
14 {
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
15 [Required(ErrorMessage = "debe ingresar el título")]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
16 public string Titulo { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
17
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
18 [Required(ErrorMessage = "debe ingresar el nombre del ponente")]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
19 public string Ponente { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
20
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
21 [Required(ErrorMessage = "debe ingresar la fecha del evento")]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
22 public DateTime Fecha { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
23 }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
24
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
25 public class AgendaEditModel
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
26 {
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
27 [HiddenInput(DisplayValue = false)]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
28 public string Id { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
29
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
30 [Required(ErrorMessage = "debe ingresar el título")]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
31 public string Titulo { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
32
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
33 [Required(ErrorMessage = "debe ingresar el nombre del ponente")]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
34 public string Ponente { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
35
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
36 [Required(ErrorMessage = "debe ingresar la fecha del evento")]
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
37 public DateTime Fecha { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
38 }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
39
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
40
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
41 public class EventoDto
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
42 {
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
43 public string Id { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
44 public string Titulo { get; set; }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
45 }
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
46 }