public async Task <IActionResult> DeleteConfirmed(int id) { await _wishlist.DeleteWishlist(id); await _wishlist.SaveWishlist(); return(RedirectToAction(nameof(Index))); }
public async Task <ActionResult> DeleteCart(int id) { await _wishlist.DeleteWishlist(id); return(Ok(await _wishlist.SaveWishlist())); }
public Wishlist DeleteWishlist(Wishlist wlToRemove) { var result = wishlistRepository.DeleteWishlist(wlToRemove); return(wlToRemove); }