fix
This commit is contained in:
parent
aba6593945
commit
f38d94afa8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user