небольшие изменения.

This commit is contained in:
Anastasia 2023-06-03 17:45:18 +04:00
parent fdfaa75bee
commit 0fcb797dad

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()