public async Task <List <LoanResponse> > GetAllLoans()
        {
            var loans = await _loanDataAgent.GetAllLoans();

            _logger.Information($"Loans count - {loans.Count}");

            return(loans.Select(x => _loanMapper.MapToResponse(x)).ToList());
        }
        public async Task <List <LoanResponse> > GetCustomerLoans(int id)
        {
            var loans = await _customerDataAgent.GetCustomerLoans(id);

            _logger.Information($"Customer's loans retrieved. Count - {loans.Count}");

            return(loans.Select(x => _loanMapper.MapToResponse(x)).ToList());
        }