//GET : /Teacher/ConfirmDelete/{id} public ActionResult ConfirmDelete(int id) { TeacherDataController controller = new TeacherDataController(); Teacher teacher = (Teacher)controller.findTeachers("teacherid=" + id).First(); return(View(teacher)); }
public ActionResult Results(string columnName, string columnValue) { TeacherDataController controller = new TeacherDataController(); IEnumerable <Teacher> teachers = controller.findTeachers(columnName + " LIKE \"" + columnValue + "\""); return(View(teachers)); }