コード例 #1
0
        //GET : /Teacher/ConfirmDelete/{id}
        public ActionResult ConfirmDelete(int id)
        {
            TeacherDataController controller = new TeacherDataController();
            Teacher teacher = (Teacher)controller.findTeachers("teacherid=" + id).First();

            return(View(teacher));
        }
コード例 #2
0
        public ActionResult Results(string columnName, string columnValue)
        {
            TeacherDataController controller = new TeacherDataController();
            IEnumerable <Teacher> teachers   = controller.findTeachers(columnName + " LIKE \"" + columnValue + "\"");

            return(View(teachers));
        }