diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Web/Models/PersonaModel.cs	Mon Aug 01 10:25:23 2011 -0300
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Web.Mvc;
+
+namespace AltNetHispano.Agendas.Web.Models
+{
+    public class PersonaIndexModel{
+        public IEnumerable<PersonaDto> Items { get; set; }
+    }
+
+    public class PersonaNewModel
+    {
+        [Required]
+        public string Nombre { get; set; }
+
+        [Required]
+        public string Twitter { get; set; }
+
+        [Required]
+        public string EMail { get; set; }
+    }
+
+    public class PersonaEditModel
+    {
+        [Required]
+        [HiddenInput(DisplayValue = false)]
+        public string Id { get; set; }
+
+        [Required]
+        public string Nombre { get; set; }
+
+        [Required]
+        public string Twitter { get; set; }
+
+        [Required]
+        public string EMail { get; set; }
+    }
+
+    public class PersonaDto
+    {
+        public Guid Id { get; set; }
+        public string Nombre { get; set; }
+    }
+}
\ No newline at end of file