示例#1
0
        private void btn_ekle_Click(object sender, EventArgs e)
        {
            int     orderID = OrderBLL.AddOrders(CustomerID, Convert.ToInt32(comboBox1.SelectedValue));
            Product product = ProductBLL.GetProduct((int)dataGridView1.SelectedRows[0].Cells["ProductID"].Value);

            OrderDetailBLL.AddOrderDetails(orderID, product);
        }