Exemplo n.º 1
0
        public Pokemon GetById(int id)
        {
            Pokemon p = ctx.GetById(id);

            p.Aanvallen = anCtx.GetAllByPokemon(p.Id);
            return(p);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public List <Aanval> GetAllByPokemon(int pokId)
 {
     return(ctx.GetAllByPokemon(pokId));
 }