diff --git a/IceCreamShop/IceCreamShop/ShopForm.cs b/IceCreamShop/IceCreamShop/ShopForm.cs index 9477799..c0d4f89 100644 --- a/IceCreamShop/IceCreamShop/ShopForm.cs +++ b/IceCreamShop/IceCreamShop/ShopForm.cs @@ -105,6 +105,7 @@ namespace IceCreamShop Address = AddressTextBox.Text, DateOpen = DateTimePicker.Value.Date, MaxCapacity = Convert.ToInt32(CapacityUpDown.Value), + ShopIceCreams = null }; var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model); if (!operationResult)