Exemplo n.º 1
0
        public bool UpdateProduct(Product productToUpdate)
        {
            var bl     = new BLL.Products();
            var Result = bl.Update(productToUpdate);

            return(Result);
        }
Exemplo n.º 2
0
        public Product RetrieveProductByID(int ID)
        {
            var bl     = new BLL.Products();
            var Result = bl.RetrieveByID(ID);

            return(Result);
        }
Exemplo n.º 3
0
        public bool DeleteProduct(int ID)
        {
            var bl     = new BLL.Products();
            var Result = bl.Delete(ID);

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

            return(Result);
        }
Exemplo n.º 5
0
        public Product CreateProduct(Product newProduct)
        {
            var bl         = new BLL.Products();
            var NewProduct = bl.Create(newProduct);

            return(NewProduct);
        }