From be0690f470765c9e1ec63002bebe90cad02e4611 Mon Sep 17 00:00:00 2001 From: dyakonovr Date: Fri, 12 Apr 2024 21:54:54 +0400 Subject: [PATCH] last fix --- .../Implements/OrderStorage.cs | 15 --------------- 1 file changed, 15 deletions(-) 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; - } } }