예제 #1
0
        public JsonResult EditSyllabus(long ID, long TopicID)
        {
            ResultInfo <SyllabusList> ResultInfo = new ResultInfo <SyllabusList>()
            {
                Status      = false,
                Description = "Failed|Login"
            };
            SyllabusList   temp    = new SyllabusList();
            User_Backend   PageObj = new User_Backend();
            Social_Student social  = new Social_Student();

            if (ID != 0)
            {
                temp = PageObj.EditSyllabusContent(ID, TopicID);
                if (temp.ExamID > 0)
                {
                    temp.ExamTypeDetails = social.ViewExamType();
                }
                if (temp.SubjectID > 0)
                {
                    temp.ExamSubject = social.ViewSubjectbyExamID(temp.ExamID);
                }

                ResultInfo.Info = temp;



                if (ResultInfo.Info != null)
                {
                    ResultInfo.Description = "Success| Get Chapter ";
                    ResultInfo.Status      = true;
                }
            }
            return(Json(ResultInfo, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public JsonResult ViewSubject(long ExamID)
        {
            ResultInfo <List <ExamSubject> > ResultInfo = new ResultInfo <List <ExamSubject> >()
            {
                Status      = false,
                Description = "Failed|Login"
            };
            List <ExamSubject> temp    = new List <ExamSubject>();
            Social_Student     PageObj = new Social_Student();

            temp            = PageObj.ViewSubjectbyExamID(ExamID);
            ResultInfo.Info = temp;
            if (ResultInfo.Info != null)
            {
                ResultInfo.Description = "Success| Get Results";
                ResultInfo.Status      = true;
            }
            return(Json(ResultInfo, JsonRequestBehavior.AllowGet));
        }