Добавлена проверка на наличие фио клиента в логику
This commit is contained in:
parent
0a39b0e81d
commit
8655c06386
@ -97,6 +97,10 @@ namespace SecuritySystemBusinessLogic.BusinessLogics
|
|||||||
{
|
{
|
||||||
throw new ArgumentNullException("Нет пароля клиента", nameof(model.Password));
|
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);
|
_logger.LogInformation("Client. Email:{Email}. Id: {Id}", model.Email, model.Id);
|
||||||
var element = _clientStorage.GetElement(new ClientSearchModel
|
var element = _clientStorage.GetElement(new ClientSearchModel
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user