示例#1
0
 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));
 }
示例#2
0
 public static void DoDeleteProductCart(String UserID, String ProductID)
 {
     DeleteProductCartHandler.DoDeleteProductCart(UserID, ProductID);
 }