예제 #1
0
        public bool UpdateProduct(Product productToUpdate)
        {
            var bl     = new BLL.Products();
            var Result = bl.Update(productToUpdate);

            return(Result);
        }
예제 #2
0
        public Product RetrieveProductByID(int ID)
        {
            var bl     = new BLL.Products();
            var Result = bl.RetrieveByID(ID);

            return(Result);
        }
예제 #3
0
        public bool DeleteProduct(int ID)
        {
            var bl     = new BLL.Products();
            var Result = bl.Delete(ID);

            return(Result);
        }
예제 #4
0
        public List <Product> FilterProductsByCategoryID(int ID)
        {
            var bl     = new BLL.Products();
            var Result = bl.FilterByCategoryID(ID);

            return(Result);
        }
예제 #5
0
        public Product CreateProduct(Product newProduct)
        {
            var bl         = new BLL.Products();
            var NewProduct = bl.Create(newProduct);

            return(NewProduct);
        }