view Agendas/trunk/src/Agendas.Web/Models/EventoModelHelper.cs @ 300:48ab8788bd19

#200: Patrocinadores: Agregar link al sitio web.
author juanjose.montesdeocaarbos
date Mon, 27 Feb 2012 14:45:12 -0300
parents a5ff4de4a1d3
children
line wrap: on
line source

using System.Collections.Generic;
using AltNetHispano.Agendas.Domain;

namespace AltNetHispano.Agendas.Web.Models
{
    public static class EventoModelHelper
    {
        public static IEnumerable<TipoEventoModel> GetTiposEventos()
        {
            var tipos = new List<TipoEventoModel>
                    {
                      new TipoEventoModel {TipoEvento = (int) TipoEvento.Van, TipoEventoStr = "VAN"},
                      new TipoEventoModel {TipoEvento = (int) TipoEvento.Cafe, TipoEventoStr = "ALT.NET Cafe"},
                      new TipoEventoModel {TipoEvento = (int) TipoEvento.GrupoEstudio, TipoEventoStr = "Grupo Estudio"}
                    };
            return tipos;
        }

        public class TipoEventoModel
        {
            public int TipoEvento { get; set; }
            public string TipoEventoStr { get; set; }
        }
    }
}