Example #1
0
        public ActionResult SubmitApplication(CustomerViewModel customerViewModel)
        {
            if (customerViewModel.Validate())
            {
                int test = CustomerRepository.AddCustomerResults(1, 1, customerViewModel.FirstName, customerViewModel.LastName, customerViewModel.GetResult());

                return(RedirectToAction("Results", "Home")); // Results page
            }
            return(RedirectToAction("Apply", "Home"));
        }