Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Repositories.Memory/PonenteRepository.cs @ 88:05f5f7307957
agregado de Agendas.Web\packages.config en install packages.bat
author | jorge.rowies |
---|---|
date | Tue, 31 May 2011 16:12:58 -0300 |
parents | 65bbcdd5d357 |
children | db4b1e2cae49 |
rev | line source |
---|---|
39 | 1 using System.Collections.Generic; |
24 | 2 using System.Linq; |
3 using AltNetHispano.Agendas.Domain; | |
4 using AltNetHispano.Agendas.Domain.Repositories; | |
5 | |
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
24
diff
changeset
|
6 namespace AltNetHispano.Agendas.Repositories.Memory |
24 | 7 { |
8 public class PonenteRepository : RepositoryBase<Ponente>, IPonenteRepository | |
9 { | |
10 public Ponente GetByNombre(string nombre) | |
11 { | |
12 return Objects.Values.SingleOrDefault(p => p.Nombre == nombre); | |
13 } | |
14 | |
15 public IList<Ponente> GetAll() | |
16 { | |
17 return Objects.Values.ToList(); | |
18 } | |
19 | |
20 public static void Clear() | |
21 { | |
22 Objects.Clear(); | |
23 } | |
24 } | |
25 } |