view 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 source

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()};
        }
    }
}