diff --git a/Confectionery/FormCreateOrder.cs b/Confectionery/FormCreateOrder.cs index 01b08ad..703c7b2 100644 --- a/Confectionery/FormCreateOrder.cs +++ b/Confectionery/FormCreateOrder.cs @@ -44,7 +44,7 @@ namespace ConfectioneryView try { int id = Convert.ToInt32(comboBoxPastry.SelectedValue); - var pastry = _logicP.ReadElement(new PastrySearchModel + var pastry = _logicP.ReadElement(new() { Id = id });