示例#1
0
        public async Task <IActionResult> Index()
        {
            IndexViewModel viewModel = new IndexViewModel();

            viewModel.Lyrics = await _lyricsService
                               .GetRecentLyricsAsync();

            viewModel.FemaleArtists = await _artistsService
                                      .GetTopTenFemaleArtistsByLyricsCountAsync();

            return(View(viewModel));
        }