правка
This commit is contained in:
parent
280db9d6e3
commit
ee2376de94
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user