diff 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
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Tue May 24 14:40:23 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Tue May 24 17:56:20 2011 -0300
@@ -14,8 +14,8 @@
 
 			var model = new EventoIndexModel
 			{
-				ProximosEventos = from e in agenda.GetEventosAgendados()
-								  select new EventoDto { Id = e.Id.ToString(), Titulo = e.Titulo }
+				ProximosEventos = from e in agenda.GetEventosAgendados() orderby e.Fecha
+								  select new EventoDto { Id = e.Id.ToString(), Titulo = e.Titulo, Fecha = e.Fecha.Value }
 			};
 			
             return View(model);