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");