public List <Pokemon> FindAll() { var allPokers = _Repository.FindAll(); var serviceType = new PokemonTypeService(); List <PokemonType> allTypes = serviceType.FindAll(); allPokers.Select(x => { x.PokemonType = (from z in allTypes where z.Id == x.PokemonTypeId select z) .FirstOrDefault(); return(x); }) .ToList(); return(allPokers); }
public List <Pokemon> FindAll() { return(_Repository.FindAll()); }