This commit is contained in:
Павел Сорокин 2023-03-14 12:31:16 +04:00
parent 88bea7b6be
commit 5ef6ef9473

View File

@ -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)