public IActionResult Index()
        {
            var vm = new HomeViewModel();

            vm.Featured = _albumService.AllAlbums();

            vm.Suggestions = _albumService.UserPreferenceAlbums();

            return(View(vm));
        }
        public async Task <IActionResult> Index()
        {
            var vm = new HomeViewModel();

            vm.Featured = _albumService.AllAlbums();

            if (await _featureManager.IsEnabledAsync(Features.UserSuggestions))
            {
                vm.Suggestions = _albumService.UserPreferenceAlbums();
            }

            return(View(vm));
        }
        public async Task <IActionResult> AllAlbums(int id, string searchTerm, int p = 1, int s = 5)
        {
            var userId = User.Id();
            var albums = await _service.AllAlbums(userId, id, searchTerm, p, s);

            return(View(albums));
        }