PIbd-23 Prytkina A.V. LabWork01 Hard #9

Closed
anastasia_prytkina wants to merge 2 commits from LabWork01_Hard into LabWork01_Base
Showing only changes of commit 0fcb797dad - Show all commits

View File

@ -50,12 +50,12 @@ namespace JewelryStoreBusinessLogic.BusinessLogics
if (element.Jewels.TryGetValue(jewel.Id, out var pair))
{
element.Jewels[jewel.Id] = (jewel, count + pair.Item2);
_logger.LogInformation("AddJewelInStore. Has been added {quantity} {jewel} in {StoreName}", count, jewel.JewelName, element.StoreName);
_logger.LogInformation("AddJewelInStore. Has been added {count} {jewel} in {StoreName}", count, jewel.JewelName, element.StoreName);
}
else
{
element.Jewels[jewel.Id] = (jewel, count);
_logger.LogInformation("AddPastryInShop. Has been added {quantity} new Jewel {jewel} in {StoreName}", count, jewel.JewelName, element.StoreName);
_logger.LogInformation("AddJewelInStore. Has been added {count} new Jewel {jewel} in {StoreName}", count, jewel.JewelName, element.StoreName);
}
_storeStorage.Update(new()