public ActionResult SaveNewTeacher(Teacher teacher) { teacherService = new TeacherService(); subjectService = new SubjectService(); staffService = new StaffService(); // adds it to the teacher's list and the staff's list teacherService.AddAndSaveNewTeacher(teacher); subjectService.ChangeTeacherInAListaOfSubjects(hireTeacherSingleton.getSubjects(), teacher); return(RedirectToAction("Index")); }