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

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

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

            return(pc.Add(p));
        }