public void SaveProduct() { Product product = new Product(); product.Name = txtProductName.Text; product.Price = Convert.ToDouble(txtPrice.Text); logic.SaveProduct(product); }
public void InsertProduct(Product product) { GetDataLogic logic = new GetDataLogic(); logic.SaveProduct(product); }