From f38d94afa86c3dc3814b3166739e43d4dc85d4e7 Mon Sep 17 00:00:00 2001 From: m1aksim1 Date: Sun, 19 Mar 2023 02:27:22 +0400 Subject: [PATCH] fix --- .../SoftwareInstallationBusinessLogic/ShopLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs b/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs index 23cd6cc..52ff24f 100644 --- a/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs +++ b/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs @@ -133,7 +133,7 @@ namespace SoftwareInstallationBusinessLogic _logger.LogInformation("AddPackageInShop. ShopName:{ShopName}.Id:{ Id}", model.Name, model.Id); var element = _shopStorage.GetElement(model); - int currCount = element.Packages.Values.FirstOrDefault().Item2; + int currCount = element.Packages.Values.First().Item2; if (element == null) { _logger.LogWarning("AddPackageInShop element not found");