public async Task <IActionResult> Loans(long customerId) { IEnumerable <FinnOneLoan> loans = await customerAccountRepository.GetLoansAsync(customerId); return(Ok(new EnumerableDataResponse <FinnOneLoan> { Data = loans })); }
public async Task <IActionResult> Loans(long customerId) { IEnumerable <FinnOneLoan> loans = await customerAccountRepository.GetLoansAsync(customerId); return(Ok(new EnumerableDataResponse <FinnOneLoan> { Data = loans })); }