public void Save(LoanIndexPostViewModel input) { var loanDataAccess = new LoanDataAccess(); loanDataAccess.SaveBorrowerInfo(new DataAccess.DataModels.LoanBorrowerInputDataModel() { Salary = input.Salary, LoanNumber = input.LoanNumber, EmployeeId = 347 }); }
public IActionResult Index(LoanIndexPostViewModel input) { //var input = new LoanIndexPostViewModel(); //input.Salary = lblSalary.Text; //input.LoanNumber = lblLoanNumber.Text; if (ModelState.IsValid) { var svc = new LoanService(); svc.Save(input); } return(View()); }