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; }
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; }
public int GetProductsCount(string cartID) { CartDL cartDL = new CartDL(); return cartDL.GetProductsCount(cartID); }
public DataTable GetProducts(string cartID) { CartDL cartDL = new CartDL(); return cartDL.GetProducts(cartID); }
public double GetCartDiscount(string cartID) { CartDL cartDL = new CartDL(); return cartDL.GetCartDiscount(cartID); }
public int GetCartCoupon(string cartID) { CartDL cartDL = new CartDL(); return cartDL.GetCartCoupon(cartID); }
public int DeleteProductFromCart(int productID, string cartID) { CartDL cartDL = new CartDL(); return cartDL.DeleteProductFromCart(productID, cartID); }
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); }
public int SaveCartCoupon(string cartID, int couponID) { CartDL cartDL = new CartDL(); return cartDL.SaveCartCoupon(cartID, couponID); }
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); }