public ActionResult TeacherRegistration(TeacherRegistrationInfo teacher_) { //If the form was filled out correctly we send the info out and return to the home page if (ModelState.IsValid) { TempData["message"] = string.Format("Your information has been submitted for approval. Thank You!"); return(RedirectToAction("Index")); } //If the form wasn't filled out correctly we stay on the same page else { return(View(teacher_)); } }
public ActionResult TeacherRegistration() { TeacherRegistrationInfo newTeach = new TeacherRegistrationInfo(); return(View(newTeach)); }