Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Repositories.Memory/PonenteRepository.cs @ 255:50442a103281
Ticket #190: Que el listado de Personas venga ordenado por Nombre.
author | juanjose.montesdeocaarbos |
---|---|
date | Mon, 17 Oct 2011 08:54:45 -0300 |
parents | 2dbb15f4510f |
children |
comparison
equal
deleted
inserted
replaced
249:7cf64cd790ab | 255:50442a103281 |
---|---|
25 { | 25 { |
26 return Objects.Values.SingleOrDefault(p => p.Twitter == username); | 26 return Objects.Values.SingleOrDefault(p => p.Twitter == username); |
27 } | 27 } |
28 | 28 |
29 public IList<Persona> GetAll() | 29 public IList<Persona> GetAll() |
30 { | 30 { |
31 return Objects.Values.ToList(); | 31 var personas = Objects.Values.ToList(); |
32 } | 32 personas.Sort((first, second) => first.Nombre.CompareTo(second.Nombre)); |
33 | |
34 return personas; | |
35 } | |
33 | 36 |
34 public static void Clear() | 37 public static void Clear() |
35 { | 38 { |
36 Objects.Clear(); | 39 Objects.Clear(); |
37 } | 40 } |