diff --git a/Shipyard/Shipyard/FormShop.cs b/Shipyard/Shipyard/FormShop.cs index 3b37ea0..f535225 100644 --- a/Shipyard/Shipyard/FormShop.cs +++ b/Shipyard/Shipyard/FormShop.cs @@ -104,7 +104,8 @@ namespace ShipyardView Id = _id ?? 0, ShopName = textBoxName.Text, Address = textBoxAddress.Text, - DateOpen = DateTime.Parse(dateTimePickerDateOpen.Text) + DateOpen = DateTime.Parse(dateTimePickerDateOpen.Text), + Ships = _shopShips }; var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model); if (!operationResult)