public ActionResult Delete(int id)
        {
            TeacherDataController controller = new TeacherDataController();

            controller.DeleteTeacher(id);
            return(RedirectToAction("List"));
        }
        // GET: Teacher/List
        public ActionResult List(string SearchKey = null)
        {
            TeacherDataController controller = new TeacherDataController();
            IEnumerable <Teacher> Teacher    = controller.ListTeachers(SearchKey);

            return(View(Teacher));
        }
        public ActionResult DeleteConfirm(int id)
        {
            TeacherDataController controller = new TeacherDataController();
            Teacher NewTeacher = controller.FindTeacher(id);


            return(View(NewTeacher));
        }
        public ActionResult Create(string TeacherFname, string TeacherLname, string employeenumber)
        {
            //Identify that this method is running
            //Identify the inputs provided from the form

            Debug.WriteLine("I have accessed the Create Method!");
            Debug.WriteLine(TeacherFname);
            Debug.WriteLine(TeacherLname);
            Debug.WriteLine(employeenumber);

            Teacher AddTeacher = new Teacher();

            AddTeacher.TeacherFname   = TeacherFname;
            AddTeacher.TeacherLname   = TeacherLname;
            AddTeacher.employeenumber = employeenumber;

            TeacherDataController controller = new TeacherDataController();

            controller.AddTeacher(AddTeacher);

            return(RedirectToAction("List"));
        }