This commit is contained in:
Павел Сорокин 2023-02-12 16:02:19 +04:00
parent b94c1cd942
commit ed62ab83c4

View File

@ -104,11 +104,11 @@ namespace ShipyardListImplement.Implements
private OrderViewModel GetViewModel(Order order)
{
var viewModel = order.GetViewModel;
foreach (var iceCream in _source.Ships)
foreach (var ship in _source.Ships)
{
if (iceCream.Id == order.ShipId)
if (ship.Id == order.ShipId)
{
viewModel.ShipName = iceCream.ShipName;
viewModel.ShipName = ship.ShipName;
break;
}
}