public IEnumerable <BankTransactionSearchResultDTO> SearchDeposits(BankTransactionSearchSRO search)
        {
            var account = _bankAccountLogic.ViewAccount(search.GuidAccount);

            if (account == null)
            {
                return(null);
            }

            var searched_transactions =
                _repository.Get(filter: t => t.IbanTarget == account.Iban,
                                orderBy: o => new Tuple <object, SortDirection>(o.PointInTime, SortDirection.Descending),
                                skip: (search.PageNumber - 1) * search.PageSize,
                                take: search.PageSize
                                );

            return(_searchMapper.MapAll(searched_transactions));
        }
 public CompanyBankTransaction GetInterCompanyReversalTransaction(Guid?referenceID, long companyBankTransactionID)
 {
     return(bankTransactionRepository.Get(x => x.ReferenceID == referenceID && x.CompanyBankTransactionID != companyBankTransactionID));
 }