예제 #1
0
        public Pokemon GetById(int id)
        {
            Pokemon p = ctx.GetById(id);

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