diff Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs @ 15:08b9e96132a5

Persistimos los eventos de la agenda
author nelo@MTEySS.neluz.int
date Mon, 14 Mar 2011 00:14:09 -0300
parents 05996fa19e04
children 41b283d27e3e
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs	Sun Mar 13 20:49:15 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs	Mon Mar 14 00:14:09 2011 -0300
@@ -1,4 +1,6 @@
 using System;
+using System.Collections.Generic;
+using System.Linq;
 using AltNetHispano.Agendas.Domain;
 using AltNetHispano.Agendas.Domain.Repositories;
 
@@ -31,5 +33,14 @@
             return Objects.TryGetValue(vanId, out evento) ? evento : null;
         }
 
+		public IList<Evento> GetEventosSinFecha()
+		{
+			return Objects.Values.Where(e => e.Fecha == null).ToList();
+		}
+
+		public IList<Evento> GetEventosConFecha()
+		{
+			return Objects.Values.Where(e => e.Fecha != null).ToList();
+		}
 	}
 }
\ No newline at end of file