private async Task <Loan> CreateLoan(CreateLoanCommand request) { var rate = await rateRepository.FindById(request.RateId); var fee = await feeRepository.FindById(request.FeeId); var loan = Loan.Create(request.Amount, request.Duration, Status.Draft, rate, fee); return(loan); }