public void UpdateProduct(Product p) { var pc = new ProductCommand(_context); pc.Update(p); }
public void DeleteProduct(string code) { var pc = new ProductCommand(_context); pc.Delete(code); }
public int AddProduct(Product p) { var pc = new ProductCommand(_context); return(pc.Add(p)); }