fix
This commit is contained in:
parent
88aa608435
commit
363b43ce09
@ -66,7 +66,7 @@ namespace CarpentryWorkshopBusinessLogic.BusinessLogics
|
||||
});
|
||||
if (wood == null)
|
||||
{
|
||||
throw new ArgumentException($"Поставка: Товар с id:{model.WoodId} не найденн");
|
||||
throw new ArgumentException($"Поставка: Товар с id:{model.WoodId} не найден");
|
||||
}
|
||||
shop.ShopWoods.Add(model.WoodId, (wood, model.Count));
|
||||
}
|
||||
@ -157,10 +157,10 @@ namespace CarpentryWorkshopBusinessLogic.BusinessLogics
|
||||
{
|
||||
return false;
|
||||
}
|
||||
_logger.LogInformation("Check pizza count in all shops");
|
||||
_logger.LogInformation("Check wood count in all shops");
|
||||
if (_shopStorage.Sale(model))
|
||||
{
|
||||
_logger.LogInformation("Selling sucsess");
|
||||
_logger.LogInformation("Selling success");
|
||||
return true;
|
||||
}
|
||||
_logger.LogInformation("Selling failed");
|
||||
|
@ -107,7 +107,7 @@
|
||||
Margin = new Padding(3, 2, 3, 2);
|
||||
Name = "FormSell";
|
||||
Text = "Продажа изделий";
|
||||
Load += FormSellingPizza_Load;
|
||||
Load += FormSellingWood_Load;
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace CarpentryWorkshopView
|
||||
_logicS = logicS;
|
||||
}
|
||||
|
||||
private void FormSellingPizza_Load(object sender, EventArgs e)
|
||||
private void FormSellingWood_Load(object sender, EventArgs e)
|
||||
{
|
||||
_woodList = _logicP.ReadList(null);
|
||||
if (_woodList != null)
|
||||
|
Loading…
Reference in New Issue
Block a user