public void Mortgage_Calculate_Test1()
        {
            var loanDetails = _mortgageService.CalculateLoanDetails(1000, 10, 5.12);

            Assert.IsTrue(loanDetails.TotalInterest == 279.84);
            Assert.IsTrue(loanDetails.TotalLoan == 1279.84);
        }
        // GET: api/mortgage?loanAmount=1000&duration=2&interestRate=5.24
        public LoanDetails Get(double loanAmount, int duration, double interestRate)
        {
            var mortgageService = new MortgageService();

            return(mortgageService.CalculateLoanDetails(loanAmount, duration, interestRate));
        }