diff Agendas/trunk/src/Agendas.Web/Models/PatrocinadorModel.cs @ 300:48ab8788bd19

#200: Patrocinadores: Agregar link al sitio web.
author juanjose.montesdeocaarbos
date Mon, 27 Feb 2012 14:45:12 -0300
parents 6f5ab71614d4
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Models/PatrocinadorModel.cs	Mon Feb 27 13:14:57 2012 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Models/PatrocinadorModel.cs	Mon Feb 27 14:45:12 2012 -0300
@@ -5,6 +5,7 @@
 using System.Linq;
 using System.Web;
 using System.Web.Mvc;
+using DataAnnotationsExtensions;
 
 namespace AltNetHispano.Agendas.Web.Models
 {
@@ -17,7 +18,7 @@
 	{
 		public Guid Id { get; set; }
 		public string Nombre { get; set; }
-		
+		public string WebSite { get; set; }
 	}
 
 	public class PatrocinadorNewModel
@@ -26,6 +27,10 @@
 		public string Nombre { get; set; }
 
 		[Required]
+		[Url]
+		public string WebSite { get; set; }
+
+		[Required]
 		public HttpPostedFileBase Logo { get; set; }
 	}
 
@@ -39,6 +44,10 @@
 		public string Nombre { get; set; }
 
 		[Required]
+		[Url]
+		public string WebSite { get; set; }
+
+		[Required]
 		public HttpPostedFileBase Logo { get; set; }
 	}
 }
\ No newline at end of file