diff --git a/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs b/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs index 14c24f0..d018863 100644 --- a/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs +++ b/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs @@ -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); diff --git a/FoodOrders/FoodOrdersView/FormMakeShipment.cs b/FoodOrders/FoodOrdersView/FormMakeShipment.cs index 1134ff0..73244a0 100644 --- a/FoodOrders/FoodOrdersView/FormMakeShipment.cs +++ b/FoodOrders/FoodOrdersView/FormMakeShipment.cs @@ -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"); diff --git a/FoodOrders/FoodOrdersView/FormShop.cs b/FoodOrders/FoodOrdersView/FormShop.cs index 0f61588..92934da 100644 --- a/FoodOrders/FoodOrdersView/FormShop.cs +++ b/FoodOrders/FoodOrdersView/FormShop.cs @@ -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); } }