예제 #1
0
		public ActionResult Apply(Applicant applicant)
		{
			applicant.Save();

			return RedirectToAction("Confirmation");
		}
예제 #2
0
		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;
		}