private void LogData() { string outputtext = $"With a principal of ${_prinicipal}, duration of {_years} years and an interest rate of {_rate}%, the monthly loan payment amount is ${_monthlypayment}"; IIOHelper ioHelper = new DatabaseIOHelper(); ioHelper.AddMortgage(outputtext, _prinicipal, _rate, _years, _monthlypayment); }
protected void btn_clear_Click(object sender, EventArgs e) { IIOHelper ioHelper = new DatabaseIOHelper(); ioHelper.ClearMortgages(); }