Merge branch 'LabWork01' into LabWork02

This commit is contained in:
dasha 2023-02-12 15:00:42 +04:00
commit 58f59670cd

View File

@ -56,11 +56,11 @@ namespace SushiBarListImplement.Implements
private OrderViewModel GetViewModel(Order order)
{
var viewModel = order.GetViewModel;
foreach (var iceCream in _source.ListSushi)
foreach (var sushi in _source.ListSushi)
{
if (iceCream.Id == order.SushiId)
if (sushi.Id == order.SushiId)
{
viewModel.SushiName = iceCream.SushiName;
viewModel.SushiName = sushi.SushiName;
break;
}
}