예제 #1
0
        public RedirectToActionResult RemoveFromWishlist(int albumId, string returnUrl)
        {
            Album album = _albumRepository.Albums.FirstOrDefault(a => a.Id == albumId);

            if (album != null)
            {
                _wishlist.RemoveLine(album);
            }

            return(RedirectToAction("Index", new { returnUrl }));
        }