view Agendas/trunk/src/Agendas.Repositories.Memory/PersonaRepository.cs @ 165:56f62516c172

Merge
author nelopauselli
date Fri, 05 Aug 2011 22:05:19 -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));

		}
	}
}