Пример #1
0
        public void AddEditCartMaster(int id, string CustomerID, string ProductID, string quentity)
        {
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter objcartitem = new AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter())
            {
                dt = objcartitem.AddEditCartMaster(id, CustomerID, ProductID, quentity);
            }
        }
Пример #2
0
        public DataTable GetCartDetailsbyCustomerAndProduct(string CustomerID, string productid)
        {
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter objcartitem = new AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter())
            {
                dt = objcartitem.GetCartDetailsbyCustomerAndProduct(CustomerID, productid);
            }
            return(dt);
        }
Пример #3
0
        public DataTable UpdateCartProductQuentity(int AddCartID, string cusid, string ProductID, string Quantity)
        {
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter objcartitem = new AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter())
            {
                objcartitem.UpdateCartProductQuentity(AddCartID, cusid, ProductID, Quantity);
            }
            return(dt);
        }
Пример #4
0
        public DataTable DeleteItemfromCartMaster(int cartid, string cusid)
        {
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter objcartitem = new AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter())
            {
                objcartitem.DeleteItemfromCartMaster(cartid, cusid);
            }
            return(dt);
        }
Пример #5
0
        public DataTable GetCartMaster(string CustomerID)
        {
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter objcartitem = new AustraliaDAL.DataSet1TableAdapters.CartMasterTableAdapter())
            {
                dt = objcartitem.GetCartMaster(CustomerID);
            }
            return(dt);
        }