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

EditorForModel en Nuevo Evento y Proponer
author Nelo@Guinea.neluz.int
date Mon, 01 Aug 2011 00:10:20 -0300
parents
children e6e6bfb1da9e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Mon Aug 01 00:10:20 2011 -0300
@@ -0,0 +1,16 @@
+using System.Collections.Generic;
+using System.Linq;
+using System.Web.Mvc;
+using AltNetHispano.Agendas.Web.Models;
+
+namespace AltNetHispano.Agendas.Web
+{
+    public static class DataProviders
+    {
+        public static IEnumerable<SelectListItem> GetTiposEvento(this HtmlHelper helper)
+        {
+            return from t in EventoModelHelper.GetTiposEventos()
+                   select new SelectListItem {Text = t.TipoEventoStr, Value = t.TipoEvento.ToString()};
+        }
+    }
+}
\ No newline at end of file