From b160dcaa36a979a74f0f9bcc2e507f92869740e0 Mon Sep 17 00:00:00 2001 From: revengel66 Date: Wed, 13 Mar 2024 10:53:18 +0300 Subject: [PATCH] 5 --- Pizzeria/PizzeriaBusinessLogic/BusinessLogic/ComponentLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/ComponentLogic.cs b/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/ComponentLogic.cs index 5f95a30..b5b4553 100644 --- a/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/ComponentLogic.cs +++ b/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/ComponentLogic.cs @@ -99,7 +99,7 @@ namespace PizzeriaBusinessLogic.BusinessLogic var element = _componentStorage.GetElement(new ComponentSearchModel{ ComponentName = model.ComponentName }); if (element != null && element.Id != model.Id) { - throw new InvalidOperationException("ингредиент с таким названием уже есть"); + throw new InvalidOperationException("Ингредиент с таким названием уже есть"); } } }