comparison Agendas/trunk/src/Agendas.Web/Models/PersonaModel.cs @ 144:a2b14da4902f

Alta y modificación de ponentes (personas)
author Nelo@Guinea.neluz.int
date Mon, 01 Aug 2011 10:25:23 -0300
parents
children f17252543cbf
comparison
equal deleted inserted replaced
143:2dbb15f4510f 144:a2b14da4902f
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.DataAnnotations;
4 using System.Web.Mvc;
5
6 namespace AltNetHispano.Agendas.Web.Models
7 {
8 public class PersonaIndexModel{
9 public IEnumerable<PersonaDto> Items { get; set; }
10 }
11
12 public class PersonaNewModel
13 {
14 [Required]
15 public string Nombre { get; set; }
16
17 [Required]
18 public string Twitter { get; set; }
19
20 [Required]
21 public string EMail { get; set; }
22 }
23
24 public class PersonaEditModel
25 {
26 [Required]
27 [HiddenInput(DisplayValue = false)]
28 public string Id { get; set; }
29
30 [Required]
31 public string Nombre { get; set; }
32
33 [Required]
34 public string Twitter { get; set; }
35
36 [Required]
37 public string EMail { get; set; }
38 }
39
40 public class PersonaDto
41 {
42 public Guid Id { get; set; }
43 public string Nombre { get; set; }
44 }
45 }