Koscheev.M. S. Lab work 2 Hard #6

Closed
1maksim1 wants to merge 4 commits from Lab2_Hard into Lab1_Hard
Showing only changes of commit f38d94afa8 - Show all commits

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