Esempio n. 1
0
        public IActionResult RemoveFromCart(int productId)
        {
            var wishList = _wishListSessionService.GetWishList();

            _wishListService.RemoveFromWishList(wishList, productId);
            _wishListSessionService.SetWishList(wishList);
            return(RedirectToAction("Index", "WishList"));
        }
Esempio n. 2
0
 public ActionResult RemoveFromWishList(string Id)
 {
     WishListService.RemoveFromWishList(this.HttpContext, Id);
     return(RedirectToAction("Index"));
 }
Esempio n. 3
0
 public IActionResult RemoveFromWishList([Required][FromBody] int productId)
 {
     _wishListService.RemoveFromWishList(productId);
     return(Ok());
 }