Ejemplo n.º 1
0
        public void Save(LoanIndexPostViewModel input)
        {
            var loanDataAccess = new LoanDataAccess();

            loanDataAccess.SaveBorrowerInfo(new DataAccess.DataModels.LoanBorrowerInputDataModel()
            {
                Salary     = input.Salary,
                LoanNumber = input.LoanNumber,
                EmployeeId = 347
            });
        }
Ejemplo n.º 2
0
        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());
        }