diff --git a/FoodOrders/FoodOrders/FormCreateOrder.cs b/FoodOrders/FoodOrders/FormCreateOrder.cs index 7e406a1..dbd9230 100644 --- a/FoodOrders/FoodOrders/FormCreateOrder.cs +++ b/FoodOrders/FoodOrders/FormCreateOrder.cs @@ -100,7 +100,7 @@ namespace FoodOrdersView var operationResult = _logicO.CreateOrder(new OrderBindingModel { DishId = Convert.ToInt32(comboBoxDish.SelectedValue), - ClientId = Convert.ToInt32(comboBoxDish.SelectedValue), + ClientId = Convert.ToInt32(comboBoxClient.SelectedValue), Count = Convert.ToInt32(textBoxCount.Text), Sum = Convert.ToDouble(textBoxSum.Text) });