public bool UpdateProduct(Product productToUpdate) { var bl = new BLL.Products(); var Result = bl.Update(productToUpdate); return(Result); }
public Product RetrieveProductByID(int ID) { var bl = new BLL.Products(); var Result = bl.RetrieveByID(ID); return(Result); }
public bool DeleteProduct(int ID) { var bl = new BLL.Products(); var Result = bl.Delete(ID); return(Result); }
public List <Product> FilterProductsByCategoryID(int ID) { var bl = new BLL.Products(); var Result = bl.FilterByCategoryID(ID); return(Result); }
public Product CreateProduct(Product newProduct) { var bl = new BLL.Products(); var NewProduct = bl.Create(newProduct); return(NewProduct); }