diff Agendas/trunk/src/Agendas.Web/DataProviders.cs @ 238:b43dc14886e3

Quitando ponente principal de la UI
author nelopauselli
date Tue, 04 Oct 2011 21:59:40 -0300
parents e5959f3405e0
children da9c295e9fa1
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Tue Oct 04 21:30:55 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Tue Oct 04 21:59:40 2011 -0300
@@ -16,20 +16,7 @@
                    select new SelectListItem {Text = t.TipoEventoStr, Value = t.TipoEvento.ToString()};
         }
 
-        public static IEnumerable<SelectListItem> GetPonentes(this HtmlHelper helper, Guid id)
-        {
-        	var lista = new List<SelectListItem> {new SelectListItem {Text = "[Ninguno]", Value = Guid.Empty.ToString()}};
-
-            var personaService = AgendaFactory.GetPersonaService();
-        	var personas = from p in personaService.GetAll()
-        	               orderby p.Nombre
-        	               select
-        	               	new SelectListItem {Text = p.Nombre, Value = p.Id.ToString(), Selected = p.Id.Equals(id)};
-
-        	return lista.Union(personas);
-        }
-
-		public static IEnumerable<SelectListItem> GetOtrosPonentes(this HtmlHelper helper, IEnumerable<Guid> ids)
+		public static IEnumerable<SelectListItem> GetPonentes(this HtmlHelper helper, IEnumerable<Guid> ids)
 		{
 			var personas = AgendaFactory.GetPersonaService();
 			if (ids == null || !ids.Any()) return new SelectListItem[] {};
@@ -40,7 +27,7 @@
 		}
 
 
-		public static IEnumerable<SelectListItem> GetOtrosPonentesExcepto(this HtmlHelper helper, IEnumerable<Guid> ids)
+		public static IEnumerable<SelectListItem> GetPonentesExcepto(this HtmlHelper helper, IEnumerable<Guid> ids)
 		{
 			var personas = AgendaFactory.GetPersonaService();