public static Response UpdateCart(String UserID, string ProductID, int Qty) { if (Qty < 0) { return(new Response(false, "Quantity Cannot Below Zero Number")); } if (Qty == 0) { DeleteProductCartHandler.DoDeleteProductCart(UserID, ProductID); return(new Response(true)); } return(UpdateCartHandler.UpdateCart(UserID, ProductID, Qty)); }
public static void DoDeleteProductCart(String UserID, String ProductID) { DeleteProductCartHandler.DoDeleteProductCart(UserID, ProductID); }