Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
140:3639803112c6 | 141:a5ff4de4a1d3 |
---|---|
1 using System.Collections.Generic; | |
2 using System.Linq; | |
3 using System.Web.Mvc; | |
4 using AltNetHispano.Agendas.Web.Models; | |
5 | |
6 namespace AltNetHispano.Agendas.Web | |
7 { | |
8 public static class DataProviders | |
9 { | |
10 public static IEnumerable<SelectListItem> GetTiposEvento(this HtmlHelper helper) | |
11 { | |
12 return from t in EventoModelHelper.GetTiposEventos() | |
13 select new SelectListItem {Text = t.TipoEventoStr, Value = t.TipoEvento.ToString()}; | |
14 } | |
15 } | |
16 } |