Пример #1
0
 public int AddProductToCart(int productID, string cartID, double quantity, double productPrice, double userPrice)
 {
     CartDL cartDL = new CartDL();
     int status = cartDL.AddProductToCart(productID, cartID, quantity, productPrice, userPrice);
     ApplyCoupon(cartID);
     return status;
 }
Пример #2
0
 public DataTable GetProducts(string cartID)
 {
     CartDL cartDL = new CartDL();
     DataTable cart = cartDL.GetProducts(cartID);
     for (int i = 0; i < cart.Rows.Count; i++)
         cart.Rows[i]["imageUrl"] = new ProductDL().createImageUrl(cart.Rows[i]["imageUrl"].ToString());
     return cart;
 }
Пример #3
0
 public int GetProductsCount(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetProductsCount(cartID);
 }
Пример #4
0
 public DataTable GetProducts(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetProducts(cartID);
 }
Пример #5
0
 public double GetCartDiscount(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetCartDiscount(cartID);
 }
Пример #6
0
 public int GetCartCoupon(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetCartCoupon(cartID);
 }
Пример #7
0
 public int DeleteProductFromCart(int productID, string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.DeleteProductFromCart(productID, cartID);
 }
Пример #8
0
 public int UpdateCartProduct(string cartID, int productID, double quantity, double productPrice, double userPrice, int couponID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.UpdateCartProduct(cartID, productID, quantity, productPrice, userPrice, couponID);
 }
Пример #9
0
 public int SaveCartCoupon(string cartID, int couponID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.SaveCartCoupon(cartID, couponID);
 }
Пример #10
0
 public int AddProductToCart(int productID, string cartID, double quantity, double productPrice, double userPrice)
 {
     CartDL cartDL = new CartDL();
     return cartDL.AddProductToCart(productID, cartID, quantity, productPrice, userPrice);
 }