예제 #1
0
        public JsonResult GetCurriculum(long subjectID, long SchoolID)
        {
            ResultInfo <SchlStuCurriCulum> ResultInfo = new ResultInfo <SchlStuCurriCulum>()
            {
                Status      = false,
                Description = "Failed|Login"
            };
            //  List<SchoolSubjects> nm = new List<SchoolSubjects>();
            SchlStuCurriCulum demo    = new SchlStuCurriCulum();
            SchoolStudent     PageObj = new SchoolStudent();

            if (subjectID > 0 && SchoolID > 0)
            {
                demo.classTopic = PageObj.GetSchoolCurriculum(subjectID, SchoolID);
            }
            ResultInfo.Info = demo;
            if (ResultInfo.Info != null)
            {
                ResultInfo.Description = "Success| Get  all Sub list";
                ResultInfo.Status      = true;
            }
            return(Json(ResultInfo, JsonRequestBehavior.AllowGet));
        }