Fix
This commit is contained in:
parent
9fc7afc1a7
commit
b130e1ac99
@ -32,7 +32,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
|
|||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogInformation("ReadElement. AccountId:{AccountId}. Sum:{Sum}. DateOperation:{DateOperation}. Id:{Id}",
|
_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);
|
var element = _cashWithdrawalStorage.GetElement(model);
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
|
|||||||
public List<CashWithdrawalViewModel>? ReadList(CashWithdrawalSearchModel? model)
|
public List<CashWithdrawalViewModel>? ReadList(CashWithdrawalSearchModel? model)
|
||||||
{
|
{
|
||||||
_logger.LogInformation("ReadElement. AccountId:{AccountId}. Sum:{Sum}. DateOperation:{DateOperation}. Id:{Id}",
|
_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 на вход метода
|
//list хранит весь список в случае, если model пришло со значением null на вход метода
|
||||||
var list = model == null ? _cashWithdrawalStorage.GetFullList() : _cashWithdrawalStorage.GetFilteredList(model);
|
var list = model == null ? _cashWithdrawalStorage.GetFullList() : _cashWithdrawalStorage.GetFilteredList(model);
|
||||||
|
Loading…
Reference in New Issue
Block a user