예제 #1
0
        public void DeleteTypeBL(string ProductName, string TypeName)
        {
            TypeDA objTypeDA = new TypeDA();
            SellDA objSellDA = new SellDA();

            int ProductID = objSellDA.GetProductID(ProductName);

            objTypeDA.DeleteTypeBL(ProductID, TypeName);
        }
        public void DeleteProductBL(string ProductName)
        {
            SellDA    objSellDA    = new SellDA();
            ProductDA objProductDA = new ProductDA();
            TypeDA    objTypeDA    = new TypeDA();
            int       ProductID    = objSellDA.GetProductID(ProductName);

            objProductDA.DeleteProductBL(ProductName);
            objTypeDA.DeleteTypeBL(ProductID);
        }