//GET : Teacher/DeleteConfirm/{id}
        /// <summary>
        /// This method is used to confirm deletion when the delete button is clicked.
        /// </summary>
        /// <param name="id">Primary Key.</param>
        /// <returns>A view with the teacher's name and a confirm delete message.</returns>
        public ActionResult DeleteConfirm(int id)
        {
            //Creates a instance of Controller.
            TeacherDataController controller = new TeacherDataController();

            // Invokes the FindTeacher method we defined in the API controller
            Teacher newTeacher = controller.FindTeacher(id);

            //Returns the required information
            return(View(newTeacher));
        }
        /// <summary>
        /// This method is called when we want to update the information for a particular teacher.
        /// </summary>
        /// <param name="id">PRIMARY KEY OF THE TEACHER</param>
        /// <returns>Teacher Information</returns>

        //GET :/Teacher/Update/{id}
        public ActionResult Update(int id)
        {
            //Creates an instance of the data controller.
            TeacherDataController controller = new TeacherDataController();

            // Calling the FindTeacher method
            Teacher selectedTeacher = controller.FindTeacher(id);

            //Returns the details of the selected teacher
            return(View(selectedTeacher));
        }