исправил ошибку из PR
This commit is contained in:
parent
39b607df29
commit
2424828f2e
@ -92,12 +92,9 @@ namespace SoftwareInstallationFileImplement.Implements
|
||||
}
|
||||
private OrderViewModel GetPackageName(OrderViewModel viewModel)
|
||||
{
|
||||
foreach (var package in source.Packages)
|
||||
{
|
||||
if (package.Id == viewModel.PackageId)
|
||||
{
|
||||
viewModel.PackageName = package.PackageName;
|
||||
}
|
||||
var package = source.Packages.FirstOrDefault(x => x.Id == viewModel.PackageId);
|
||||
if (package != null) {
|
||||
viewModel.PackageName = package.PackageName;
|
||||
}
|
||||
return viewModel;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user