public String GetStudentApply() { getRoleInfo(); JObject apply = teacherHelper.GetApply(); if ((bool)apply["status"]) { return(apply["data"].ToString(Formatting.None)); } else { return(apply["msg"].ToString()); } }
public String GetStudentApply() { tid = User.Identity.GetUserId(); TeacherHelper teacherHelper = new TeacherHelper(); JObject apply = teacherHelper.GetApply(tid); if ((bool)apply["status"]) { return(apply["data"].ToString(Formatting.None)); } else { return(apply["msg"].ToString()); } }