diff Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 162:557c386fcecc

Ticket 153: UI de Publicar.
author juanjose.montesdeocaarbos
date Fri, 05 Aug 2011 22:02:23 -0300
parents c57ca21064f2
children b7621309524f
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs	Fri Aug 05 21:54:43 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs	Fri Aug 05 22:02:23 2011 -0300
@@ -65,6 +65,29 @@
 		public string UrlInvitacion { get; set; }
 	}
 
+	public class EventoPublicarModel
+	{
+		[HiddenInput(DisplayValue = false)]
+		public string Id { get; set; }
+
+		[Required]
+		[HiddenInput]
+		public string Titulo { get; set; }
+
+		[Required]
+		[UIHint("NroOrden")]
+		[Range(1, short.MaxValue)]
+		public short NroOrden { get; set; }
+
+		[Required]
+		[Url]
+		public string UrlWiki { get; set; }
+
+		[Required]
+		[UIHint("DuracionReal")]
+		public TimeSpan DuracionReal { get; set; }
+	}
+
 	public class EventoDto
 	{
 		public string Id { get; set; }