Фикс Percent в бизнес-логике.
This commit is contained in:
parent
af59eea06b
commit
9d969f1c1e
@ -97,11 +97,11 @@ namespace BankBusinessLogic.BusinessLogics
|
||||
{
|
||||
throw new ArgumentNullException("Нет названия валюты!", nameof(model.Name));
|
||||
}
|
||||
if (model.Persent <= 0)
|
||||
if (model.Percent <= 0)
|
||||
{
|
||||
throw new InvalidOperationException("Процент кредитования неположительный!");
|
||||
}
|
||||
_logger.LogInformation("Name:{ Name}. Percent: {Percent}. Id: { Id}", model.Name, model.Persent, model.Id);
|
||||
_logger.LogInformation("Name:{ Name}. Percent: {Percent}. Id: { Id}", model.Name, model.Percent, model.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user