public JsonResult GetSectionsBySubject() { if (!Permission.PremissionNeed(Request, Response, Session, UserRank.TEACHER)) { return(Json(null)); } int sid = Convert.ToInt32(Request["subject"]); return(Json(SectionView.GetSectionsBySubject(sid))); }