Example #1
0
        public async Task <IActionResult> Index(ArtistIndexInputViewModel model)
        {
            var artists = await _dataRepository.GetArtists(model.SearchTerm);

            return(View(new ArtistIndexInputViewModel
            {
                Artists = artists
            }));
        }
Example #2
0
 public async Task <IActionResult> Index(ArtistIndexInputViewModel model)
 {
     return(View(new HomeIndexViewModel
     {
         ArtistCount = await _dataRepository.GetArtistCount(),
         FolderCount = await _dataRepository.GetFolderCount(),
         PlaylistCount = await _dataRepository.GetPlaylistCount(),
         FolderSizeCumulated = await _dataRepository.GetFolderSizeCumulated()
     }));
 }