예제 #1
0
        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)));
        }