示例#1
0
        // Gets all applicants from repo, and displays them in a table.
        public ActionResult ViewApplicants()
        {
            var repo = new ApplicantDatabase();
            var applicants = repo.GetAll();

            return View(applicants);
        }
        public ViewResult ApplyNow(Applicant newApp)
        {
            if (ModelState.IsValid)
            {
                var repo = new ApplicantDatabase();
                repo.Add(newApp);
                return View("ThanksForApplying", newApp);
            }

            return View("DrawApplication");
        }