Example #1
0
        public async Task <ICollection <FavouritePokemonModel> > GetFavourites()
        {
            var list = await _service.GetAllFavouritesAsync(Convert.ToInt32(this.User.Identity.Name));

            return(list.Select(x => x.ToModel()).ToList());
        }