This commit is contained in:
m1aksim1 2023-03-19 02:27:22 +04:00
parent aba6593945
commit f38d94afa8

View File

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