changeset 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 b921a0ab8504
children 8a8c35302b81
files Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs	Wed Aug 31 07:29:31 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs	Sun Sep 04 18:35:33 2011 -0300
@@ -11,10 +11,10 @@
 		{
 			var agenda = AgendaFactory.GetAgenda();
 
-			var model = new HistoricoIndexModel
+            var model = new HistoricoIndexModel
 			            	{
-			            		Items = from e in agenda.GetHistorico()
-			            		        orderby e.FechaInicio
+                                Items = from e in agenda.GetHistorico()
+			            		        orderby e.NumeroOrden descending
 			            		        select new HistoricoDto
 			            		               	{
 			            		               		Id = e.Id.ToString(),
--- a/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml	Wed Aug 31 07:29:31 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml	Sun Sep 04 18:35:33 2011 -0300
@@ -15,7 +15,7 @@
         </tr>
     </thead>
     <tbody>
-        @foreach (var item in Model.Items.OrderByDescending(i => i.Numero))
+        @foreach (var item in Model.Items)
         {
         <tr>
             <td>@item.Numero</td>