Example #1
0
        public async Task <List <Hero> > Get()
        {
            var client = new HeroMetaClient();
            var heroes = await client.GetHeroes();

            return(heroes);
        }
Example #2
0
        public async Task <List <Ability> > Get()
        {
            var client = new HeroMetaClient();
            var heroes = await client.GetHeroes();

            var abilities = heroes.SelectMany(_ => _.abilities).ToList();

            return(abilities);
        }