public ActionResult Apply(Applicant applicant) { applicant.Save(); return RedirectToAction("Confirmation"); }
public static Applicant NewApplicant(String studentNumber, String firstName, String lastName, String phoneNumber, String emailAddress, Int32 gender, DateTime dateOfBirth, Int32 status, Double cumulativeGPA, Int32 creditHours) { Applicant applicant = new Applicant(); applicant.StudentNumber = studentNumber; applicant.FirstName = firstName; applicant.LastName = lastName; applicant.PhoneNumber = RegexUtility.FormatPhone(phoneNumber); applicant.EmailAddress = emailAddress; applicant.Gender = gender; applicant.DateOfBirth = dateOfBirth; applicant.Status = status; applicant.CumulativeGPA = cumulativeGPA; applicant.CreditHours = creditHours; return applicant; }