Mercurial > altnet-hispano
annotate 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 |
rev | line source |
---|---|
141
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
1 using System.Collections.Generic; |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
2 using System.Linq; |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
3 using System.Web.Mvc; |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
4 using AltNetHispano.Agendas.Web.Models; |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
5 |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
6 namespace AltNetHispano.Agendas.Web |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
7 { |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
8 public static class DataProviders |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
9 { |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
10 public static IEnumerable<SelectListItem> GetTiposEvento(this HtmlHelper helper) |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
11 { |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
12 return from t in EventoModelHelper.GetTiposEventos() |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
13 select new SelectListItem {Text = t.TipoEventoStr, Value = t.TipoEvento.ToString()}; |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
14 } |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
15 } |
a5ff4de4a1d3
EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents:
diff
changeset
|
16 } |