comparison Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 78:2adf55ea9199

Fecha del evento en los eventos agendados
author nelopauselli
date Tue, 24 May 2011 17:56:20 -0300
parents 96d7609f2e08
children c8897b1c6f49
comparison
equal deleted inserted replaced
77:a300394dbabe 78:2adf55ea9199
12 { 12 {
13 var agenda = AgendaFactory.GetAgenda(); 13 var agenda = AgendaFactory.GetAgenda();
14 14
15 var model = new EventoIndexModel 15 var model = new EventoIndexModel
16 { 16 {
17 ProximosEventos = from e in agenda.GetEventosAgendados() 17 ProximosEventos = from e in agenda.GetEventosAgendados() orderby e.Fecha
18 select new EventoDto { Id = e.Id.ToString(), Titulo = e.Titulo } 18 select new EventoDto { Id = e.Id.ToString(), Titulo = e.Titulo, Fecha = e.Fecha.Value }
19 }; 19 };
20 20
21 return View(model); 21 return View(model);
22 } 22 }
23 23