view Agendas/trunk/src/Agendas.Repositories.Memory/PersonaRepository.cs @ 101:9bfdd5bf3ad2

Manejo de estados de los Eventos mediante state pattern (primer version)
author jorge.rowies
date Sun, 05 Jun 2011 11:10:32 -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));

		}
	}
}