Merge branch 'LabWork01' into LabWork02
This commit is contained in:
commit
58f59670cd
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user