Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Web/DataProviders.cs @ 291:5f1e3d35e113
Patrocinadores: Correcciones en Vistas.
author | juanjose.montesdeocaarbos |
---|---|
date | Thu, 09 Feb 2012 00:12:00 -0300 |
parents | c8f378272407 |
children |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/DataProviders.cs Tue Feb 07 23:29:06 2012 -0300 +++ b/Agendas/trunk/src/Agendas.Web/DataProviders.cs Thu Feb 09 00:12:00 2012 -0300 @@ -54,8 +54,9 @@ var patrocinadores = repository.GetAll(); if (ids == null || !ids.Any()) return new SelectListItem[] { }; - return from p in patrocinadores - select new SelectListItem {Text = p.Nombre, Value = p.Id.ToString()}; + return from p in from id in ids + select repository.GetById(id.ToString()) + select new SelectListItem { Text = p.Nombre, Value = p.Id.ToString() }; } public static IEnumerable<SelectListItem> GetPatrocinadoresExcepto(this HtmlHelper helper, IEnumerable<Guid> ids)