This commit is contained in:
Камилия Сафиулова 2024-03-24 23:55:24 +04:00
parent def5688c01
commit a664753a21

View File

@ -77,10 +77,7 @@ namespace AircraftPlantFileImplement.Implements
{ {
var viewModel = order.GetViewModel; var viewModel = order.GetViewModel;
var plane = _source.Planes.FirstOrDefault(x => x.Id == order.PlaneId); var plane = _source.Planes.FirstOrDefault(x => x.Id == order.PlaneId);
if (plane != null) viewModel.PlaneName = plane?.PlaneName;
{
viewModel.PlaneName = plane.PlaneName;
}
return viewModel; return viewModel;
} }
} }