From 6a8a2ae37c32da5898d2e1dd063c38c75d3e7361 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Mon, 29 Apr 2024 23:00:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BB=D0=BE=D0=B3=D0=B8=20=D0=B2=20=D0=BB=D0=BE=D0=B3?= =?UTF-8?q?=D0=B8=D0=BA=D0=B5=20=D1=81=D0=B8=D0=BC=D0=BF=D1=82=D0=BE=D0=BC?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PolyclinicBusinessLogic/BusinessLogics/SymptomLogic.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/SymptomLogic.cs b/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/SymptomLogic.cs index cab88fa..e7f264f 100644 --- a/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/SymptomLogic.cs +++ b/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/SymptomLogic.cs @@ -93,7 +93,7 @@ namespace PolyclinicBusinessLogic.BusinessLogics } if (string.IsNullOrEmpty(model.Name)) { - throw new ArgumentNullException("Нет названия болезни", nameof(model.Name)); + throw new ArgumentNullException("Нет названия симптома", nameof(model.Name)); } _logger.LogInformation("Symptom. Name:{Name}. Id: {Id}", model.Name, model.Id); var element = _symptomStorage.GetElement(new SymptomSearchModel @@ -102,7 +102,7 @@ namespace PolyclinicBusinessLogic.BusinessLogics }); if (element != null && element.Id != model.Id) { - throw new InvalidOperationException("Болезнь с таким названием уже есть"); + throw new InvalidOperationException("Симптом с таким названием уже есть"); } } }