public IActionResult DeleteCartItem(CartItemModel cartItem) { try { cartItemService.DeleteProductInCart(cartItem); int id = cartItem.id; return(Ok()); } catch (Exception) { return(BadRequest()); } }
public IActionResult DeleteCartItem(CartItemModel cartItem) { try { cartItemService.DeleteProductInCart(cartItem); int id = cartItem.id; return(Ok()); } catch (Exception) { return(BadRequest()); } }