This commit is contained in:
dyakonovr 2024-04-12 21:54:54 +04:00
parent a03f0c7e69
commit be0690f470

View File

@ -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;
}
}
}