правка

This commit is contained in:
Николай 2023-02-12 15:03:09 +04:00
parent 280db9d6e3
commit ee2376de94

View File

@ -63,11 +63,11 @@ namespace FoodOrdersListImplement.Implements
private OrderViewModel GetViewModel(Order order)
{
var viewModel = order.GetViewModel;
foreach (var iceCream in _source.Dish)
foreach (var dish in _source.Dish)
{
if (iceCream.Id == order.DishId)
if (dish.Id == order.DishId)
{
viewModel.DishName = iceCream.DishName;
viewModel.DishName = dish.DishName;
break;
}
}