diff Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 141:a5ff4de4a1d3

EditorForModel en Nuevo Evento y Proponer
author Nelo@Guinea.neluz.int
date Mon, 01 Aug 2011 00:10:20 -0300
parents 6f1041301797
children a2b14da4902f
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs	Fri Jul 29 16:30:53 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs	Mon Aug 01 00:10:20 2011 -0300
@@ -13,13 +13,9 @@
 
 	public class EventoNewModel
 	{
-		public EventoNewModel()
-		{
-			Tipos = EventoModelHelper.GetTiposEventos();
-		}
-
 		[Required]
-		public int Tipo { get; set; }
+        [UIHint("TipoEvento")]
+		public int TipoEvento { get; set; }
 
 		[Required]
 		public string Titulo { get; set; }
@@ -32,14 +28,6 @@
 
 		[Url]
 		public string UrlInvitacion { get; set; }
-
-		public IEnumerable<TipoEventoModel> Tipos { get; private set; }
-	}
-
-	public class TipoEventoModel
-	{
-		public int TipoEvento { get; set; }
-		public string TipoEventoStr { get; set; }
 	}
 
 	public class EventoEditModel