public Pokemon GetById(int id)
        {
            Pokemon p = ctx.GetById(id);

            p.Aanvallen = anCtx.GetAllByPokemon(p.Id);
            return(p);
        }
Exemple #2
0
        public List <Pokemon> GetPokemonWithIds(List <int> ids)
        {
            List <Pokemon> pokemon = new List <Pokemon>();

            foreach (int i in ids)
            {
                Pokemon p = pCtx.GetById(i);
                p.Aanvallen = anCtx.GetAllByPokemon(p.Id);
                pokemon.Add(p);
            }
            return(pokemon);
        }
Exemple #3
0
        public List <Pokemon> GetAllPokemonOfUser(int gebruikerId)
        {
            List <Pokemon> pokemonList = ctx.GetAllPokemonOfUser(gebruikerId);

            foreach (Pokemon p in pokemonList)
            {
                p.Aanvallen = anCtx.GetAllByPokemon(p.Id);
            }
            return(pokemonList);
        }
 public List <Aanval> GetAllByPokemon(int pokId)
 {
     return(ctx.GetAllByPokemon(pokId));
 }