Beispiel #1
0
        public async Task <List <ArtistDto> > GetTopArtists(int page, int itemsPerPage)
        {
            List <ArtistDto> artists = await _lastFm.GetTopArtists(page, itemsPerPage);

            artists = artists.Skip(artists.Count - itemsPerPage).ToList();
            await GetFullInfoAndAddToDatabaseIfNeeded(artists);

            return(artists);
        }