public JsonResult GetById(int tid) { TeacherDAL dal = new TeacherDAL(); var obj = dal.GetById(tid); return(Json(obj, JsonRequestBehavior.AllowGet)); }
public Teacher GetById(long id) { return(teacherDAL.GetById(id)); }