last fix
This commit is contained in:
parent
a03f0c7e69
commit
be0690f470
@ -95,20 +95,5 @@ namespace SoftwareInstallationDatabaseImplement.Implements
|
||||
|
||||
return order.GetViewModel;
|
||||
}
|
||||
|
||||
private static OrderViewModel GetPackageName(OrderViewModel viewModel)
|
||||
{
|
||||
using var context = new SoftwareInstallationDatabase();
|
||||
|
||||
var package = context.Packages.FirstOrDefault(x => x.Id == viewModel.PackageId);
|
||||
|
||||
if (package == null)
|
||||
{
|
||||
return viewModel;
|
||||
}
|
||||
|
||||
viewModel.PackageName = package.PackageName;
|
||||
return viewModel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user