//GET: Student/DeleteConfirm/{id} public ActionResult DeleteConfirm(int id) { StudentDataController controller = new StudentDataController(); Student NewStudent = controller.FindStudent(id); return(View(NewStudent)); }
//GET : /Student/Update/{id} /// <summary> /// sends a get request to display the information of the student /// </summary> /// <param name="id">student Id</param> /// <returns></returns> public ActionResult Update(int id) { // get accesss from the Student dataController StudentDataController controller = new StudentDataController(); Student SelectedStudent = controller.FindStudent(id); return(View(SelectedStudent)); }