public async Task UpdateMovieRatingsAsync(string username) { for (var i = 0; i <= 37; i++) { var movieRatingsPage = await _scraperService.GetMovieRatingsPageAsync(username, i); var j = 0; foreach (var movieRatingsPageItem in movieRatingsPage) { //if (j == 5) break; var movie = new MovieRatingMapper().Map(movieRatingsPageItem); Movies.Add(movie.Slug, movie); j++; } } }