Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
14:ed6d842abf42 | 15:08b9e96132a5 |
---|---|
1 using System; | 1 using System; |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
2 using AltNetHispano.Agendas.Domain; | 4 using AltNetHispano.Agendas.Domain; |
3 using AltNetHispano.Agendas.Domain.Repositories; | 5 using AltNetHispano.Agendas.Domain.Repositories; |
4 | 6 |
5 namespace Agendas.Repositories.Memory | 7 namespace Agendas.Repositories.Memory |
6 { | 8 { |
29 { | 31 { |
30 Evento evento; | 32 Evento evento; |
31 return Objects.TryGetValue(vanId, out evento) ? evento : null; | 33 return Objects.TryGetValue(vanId, out evento) ? evento : null; |
32 } | 34 } |
33 | 35 |
36 public IList<Evento> GetEventosSinFecha() | |
37 { | |
38 return Objects.Values.Where(e => e.Fecha == null).ToList(); | |
39 } | |
40 | |
41 public IList<Evento> GetEventosConFecha() | |
42 { | |
43 return Objects.Values.Where(e => e.Fecha != null).ToList(); | |
44 } | |
34 } | 45 } |
35 } | 46 } |