This commit is contained in:
shadowik 2023-04-06 21:48:31 +04:00
parent 9fc7afc1a7
commit b130e1ac99

View File

@ -32,7 +32,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
}
_logger.LogInformation("ReadElement. AccountId:{AccountId}. Sum:{Sum}. DateOperation:{DateOperation}. Id:{Id}",
model.AccountId, model.Sum, model.DateOperation, model?.Id);
model.AccountId, model.Sum, model.DateTo, model?.Id);
var element = _cashWithdrawalStorage.GetElement(model);
@ -51,7 +51,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
public List<CashWithdrawalViewModel>? ReadList(CashWithdrawalSearchModel? model)
{
_logger.LogInformation("ReadElement. AccountId:{AccountId}. Sum:{Sum}. DateOperation:{DateOperation}. Id:{Id}",
model.AccountId, model.Sum, model.DateOperation, model?.Id);
model.AccountId, model.Sum, model.DateTo, model?.Id);
//list хранит весь список в случае, если model пришло со значением null на вход метода
var list = model == null ? _cashWithdrawalStorage.GetFullList() : _cashWithdrawalStorage.GetFilteredList(model);