Исправление проблемы с обновлением магазина

This commit is contained in:
Илья 2024-02-12 13:15:06 +04:00
parent 0fb763fc1b
commit 39b63af0ec

View File

@ -97,7 +97,8 @@ namespace IceCreamShopView
Id = _id ?? 0,
ShopName = textBoxName.Text,
Address = textBoxAddress.Text,
DateOpening = dateTimePicker.Value
DateOpening = dateTimePicker.Value,
ShopIceCreams = _shopIceCreams
};
var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model);
if (!operationResult)