Esempio n. 1
0
        public async Task <IActionResult> Wishlist()
        {
            var user = await _userManager.GetUserAsync(User);

            var userId = user.Id;
            // Service layer gets all the books from the wishlist
            var books = _wishlistService.GetBooks(userId);

            return(View(books));
        }