diff --git a/SoftwareInstallation/SoftwareInstallationDatabaseImplement/Implements/OrderStorage.cs b/SoftwareInstallation/SoftwareInstallationDatabaseImplement/Implements/OrderStorage.cs index 61cef47..c9fe224 100644 --- a/SoftwareInstallation/SoftwareInstallationDatabaseImplement/Implements/OrderStorage.cs +++ b/SoftwareInstallation/SoftwareInstallationDatabaseImplement/Implements/OrderStorage.cs @@ -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; - } } }