diff --git a/SecuritySystem/SecuritySystemBusinessLogic/BusinessLogics/ClientLogic.cs b/SecuritySystem/SecuritySystemBusinessLogic/BusinessLogics/ClientLogic.cs index a322bf4..ada8fcc 100644 --- a/SecuritySystem/SecuritySystemBusinessLogic/BusinessLogics/ClientLogic.cs +++ b/SecuritySystem/SecuritySystemBusinessLogic/BusinessLogics/ClientLogic.cs @@ -97,6 +97,10 @@ namespace SecuritySystemBusinessLogic.BusinessLogics { throw new ArgumentNullException("Нет пароля клиента", nameof(model.Password)); } + if (string.IsNullOrEmpty(model.ClientFIO)) + { + throw new ArgumentNullException("Нет фио клиента", nameof(model.ClientFIO)); + } _logger.LogInformation("Client. Email:{Email}. Id: {Id}", model.Email, model.Id); var element = _clientStorage.GetElement(new ClientSearchModel {