コード例 #1
0
        public async Task <List <TrackDto> > GetTopTracks(int page, int itemsPerPage)
        {
            List <TrackDto> tracks = await _lastFm.GetTopTracks(page, itemsPerPage);

            tracks = await _resultFilter.GetFilteredTopTracks(tracks, page, itemsPerPage);

            return(await GetTracksFromDatabaseAndAddIfNeeded(tracks));
        }