This commit is contained in:
gg12 darfren 2024-02-20 12:32:52 +04:00
parent d67130ca15
commit fdf212256c

View File

@ -88,6 +88,8 @@ model)
public OrderViewModel AccessIceCreamStorage(OrderViewModel model) public OrderViewModel AccessIceCreamStorage(OrderViewModel model)
{ {
if (model == null)
return null;
foreach (var iceCream in source.IceCreams) foreach (var iceCream in source.IceCreams)
{ {
if (iceCream.Id == model.IceCreamId) if (iceCream.Id == model.IceCreamId)