Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Repositories.Memory/PersonaRepository.cs @ 278:6f5ab71614d4
#125: ABM de patrocinadores.
author | juanjose.montesdeocaarbos |
---|---|
date | Wed, 21 Dec 2011 08:47:05 -0300 |
parents | db4b1e2cae49 |
children |
line wrap: on
line source
using System.Linq; using AltNetHispano.Agendas.Domain; using AltNetHispano.Agendas.Domain.Repositories; namespace AltNetHispano.Agendas.Repositories.Memory { public class PersonaRepository : RepositoryBase<Persona>, IPersonaRepository { public Persona GetByLogonName(string logonName) { return Objects.Values.SingleOrDefault(p => p.Cuentas.Any(c=>c.LogonName==logonName)); } } }