PIbd-22. Safiulova K.N. LabWork_03_hard #15
@ -159,11 +159,11 @@ namespace AircraftPlantListImplement.Implements
|
||||
private OrderViewModel GetViewModel(Order order)
|
||||
{
|
||||
var viewModel = order.GetViewModel;
|
||||
foreach (var sushi in _source.Planes)
|
||||
foreach (var plane in _source.Planes)
|
||||
{
|
||||
if (sushi.Id == order.PlaneId)
|
||||
if (plane.Id == order.PlaneId)
|
||||
{
|
||||
viewModel.PlaneName = sushi.PlaneName;
|
||||
viewModel.PlaneName = plane.PlaneName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user