# HG changeset patch # User nelopauselli # Date 1306270580 10800 # Node ID 2adf55ea9199d42cd874b8761f14bfe58a204064 # Parent a300394dbabec2832ebefc188f0a1d80dcf5328b Fecha del evento en los eventos agendados diff -r a300394dbabe -r 2adf55ea9199 Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs --- 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); diff -r a300394dbabe -r 2adf55ea9199 Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs --- a/Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs Tue May 24 14:40:23 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs Tue May 24 17:56:20 2011 -0300 @@ -46,5 +46,6 @@ { public string Id { get; set; } public string Titulo { get; set; } + public DateTime Fecha { get; set; } } } \ No newline at end of file diff -r a300394dbabe -r 2adf55ea9199 Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml Tue May 24 14:40:23 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml Tue May 24 17:56:20 2011 -0300 @@ -6,6 +6,7 @@
Fecha | Evento | Acciones | |
---|---|---|---|
@item.Fecha.ToShortDateString() | @item.Titulo | -@Html.ActionLink("Modificar", "Edit", new { id = item.Id }) | ++ @Html.ActionLink("Modificar", "Edit", new { id = item.Id }) + @Html.ActionLink("Confirmar", "Confirm", new { id = item.Id }) + |