示例#1
0
        public JsonResult GetById(int tid)
        {
            TeacherDAL dal = new TeacherDAL();
            var        obj = dal.GetById(tid);

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
示例#2
0
 public Teacher GetById(long id)
 {
     return(teacherDAL.GetById(id));
 }