небольшие изменения.
This commit is contained in:
parent
fdfaa75bee
commit
0fcb797dad
@ -50,12 +50,12 @@ namespace JewelryStoreBusinessLogic.BusinessLogics
|
|||||||
if (element.Jewels.TryGetValue(jewel.Id, out var pair))
|
if (element.Jewels.TryGetValue(jewel.Id, out var pair))
|
||||||
{
|
{
|
||||||
element.Jewels[jewel.Id] = (jewel, count + pair.Item2);
|
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
|
else
|
||||||
{
|
{
|
||||||
element.Jewels[jewel.Id] = (jewel, count);
|
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()
|
_storeStorage.Update(new()
|
||||||
|
Loading…
Reference in New Issue
Block a user