Пример #1
0
        public void SaveProduct()
        {
            Product product = new Product();

            product.Name  = txtProductName.Text;
            product.Price = Convert.ToDouble(txtPrice.Text);

            logic.SaveProduct(product);
        }
Пример #2
0
        public void InsertProduct(Product product)
        {
            GetDataLogic logic = new GetDataLogic();

            logic.SaveProduct(product);
        }