comparison Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs @ 215:85ddae313408

Se soluciona ticket #178. Se resuelve ordenar Historico de Eventos solamente por NumeroOrden de forma descendente.
author alabra
date Sun, 04 Sep 2011 18:35:33 -0300
parents 2d02adb79322
children 11545cc95491
comparison
equal deleted inserted replaced
213:b921a0ab8504 215:85ddae313408
9 { 9 {
10 public ActionResult Index() 10 public ActionResult Index()
11 { 11 {
12 var agenda = AgendaFactory.GetAgenda(); 12 var agenda = AgendaFactory.GetAgenda();
13 13
14 var model = new HistoricoIndexModel 14 var model = new HistoricoIndexModel
15 { 15 {
16 Items = from e in agenda.GetHistorico() 16 Items = from e in agenda.GetHistorico()
17 orderby e.FechaInicio 17 orderby e.NumeroOrden descending
18 select new HistoricoDto 18 select new HistoricoDto
19 { 19 {
20 Id = e.Id.ToString(), 20 Id = e.Id.ToString(),
21 Titulo = e.Titulo, 21 Titulo = e.Titulo,
22 Fecha = e.FechaInicio.HasValue ? e.FechaInicio.Value.ToShortDateString() : string.Empty, 22 Fecha = e.FechaInicio.HasValue ? e.FechaInicio.Value.ToShortDateString() : string.Empty,