Example #1
0
        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);
        }
Example #2
0
 public List <Pokemon> FindAll()
 {
     return(_Repository.FindAll());
 }