Exemple #1
0
        public void UpdateProduct(Product p)
        {
            var pc = new ProductCommand(_context);

            pc.Update(p);
        }
Exemple #2
0
        public void DeleteProduct(string code)
        {
            var pc = new ProductCommand(_context);

            pc.Delete(code);
        }
Exemple #3
0
        public int AddProduct(Product p)
        {
            var pc = new ProductCommand(_context);

            return(pc.Add(p));
        }