Исправления

This commit is contained in:
Даниил Путинцев 2024-03-25 01:45:28 +04:00
parent 2fbd0d71fd
commit 9b7f99f36a
3 changed files with 5 additions and 5 deletions

View File

@ -96,7 +96,7 @@ namespace FoodOrdersBusinessLogic.BusinessLogics
}
if (count <= 0)
{
throw new ArgumentException("Количество товаров(мороженого) в магазине должно быть больше нуля", nameof(count));
throw new ArgumentException("Количество товаров(блюд) в магазине должно быть больше нуля", nameof(count));
}
_logger.LogInformation("MakeShipment(GetElement). ShopName: {ShopName}. Id: {Id}", shopModel.ShopName, shopModel.Id);
var shop = _shopStorage.GetElement(shopModel);

View File

@ -22,7 +22,7 @@ namespace FoodOrdersView
private void FormMakeShipment_Load(object sender, EventArgs e)
{
_logger.LogInformation("Ice creams loading");
_logger.LogInformation("Dishs loading");
try
{
var list = _logicDish.ReadList(null);
@ -36,7 +36,7 @@ namespace FoodOrdersView
}
catch (Exception ex)
{
_logger.LogError(ex, "Ice creams loading error");
_logger.LogError(ex, "Dishs loading error");
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
_logger.LogInformation("Shops loading");

View File

@ -53,7 +53,7 @@ namespace FoodOrdersView
private void LoadData()
{
_logger.LogInformation("Shop ice creams loading");
_logger.LogInformation("Shop dishs loading");
try
{
if (_shopDishs != null)
@ -67,7 +67,7 @@ namespace FoodOrdersView
}
catch (Exception ex)
{
_logger.LogError(ex, "Shop ice creams loading error");
_logger.LogError(ex, "Shop dishs loading error");
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}