# HG changeset patch # User nelopauselli # Date 1317211054 10800 # Node ID 11545cc9549159aa1b92f95f6e9e9643eae30428 # Parent 4d05b5883eacb2a98cb67a6226d554511e5f8fb5 Mostrar todos los ponentes en el histórico diff -r 4d05b5883eac -r 11545cc95491 Agendas/trunk/src/Agendas.Domain/Evento.cs --- a/Agendas/trunk/src/Agendas.Domain/Evento.cs Mon Sep 26 09:29:59 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Domain/Evento.cs Wed Sep 28 08:57:34 2011 -0300 @@ -98,6 +98,11 @@ get { return _otrosPonentes; } } + public virtual IEnumerable Ponentes + { + get { return new List {Ponente}.Union(OtrosPonentes); } + } + public virtual void ActualizarOtrosPonentes(IEnumerable otrosPonentes) { foreach (var otro in otrosPonentes) diff -r 4d05b5883eac -r 11545cc95491 Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs --- a/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Mon Sep 26 09:29:59 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Wed Sep 28 08:57:34 2011 -0300 @@ -21,7 +21,7 @@ Titulo = e.Titulo, Fecha = e.FechaInicio.HasValue ? e.FechaInicio.Value.ToShortDateString() : string.Empty, Wiki = e.UrlWiki, - Ponente = e.Ponente.Nombre, + Ponentes = e.Ponentes.Select(p=>p.Nombre), Numero = e.NumeroOrden.ToString(), Tipo = e.Tipo.ToString(), Duracion = e.Duracion.ToString(@"hh\:mm") diff -r 4d05b5883eac -r 11545cc95491 Agendas/trunk/src/Agendas.Web/Models/HistoricoModel.cs --- a/Agendas/trunk/src/Agendas.Web/Models/HistoricoModel.cs Mon Sep 26 09:29:59 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Models/HistoricoModel.cs Wed Sep 28 08:57:34 2011 -0300 @@ -16,7 +16,7 @@ public string Titulo { get; set; } public string Fecha { get; set; } public string Wiki { get; set; } - public string Ponente { get; set; } + public IEnumerable Ponentes { get; set; } public string Duracion { get; set; } } diff -r 4d05b5883eac -r 11545cc95491 Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml Mon Sep 26 09:29:59 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml Wed Sep 28 08:57:34 2011 -0300 @@ -22,7 +22,11 @@ @item.Fecha @item.Tipo @item.Titulo - @item.Ponente + + @foreach(var ponente in item.Ponentes) { + @ponente
+ } + @item.Duracion }