コード例 #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 ViewExamTypeandQuesType()
        {
            ResultInfo <QuestionPanel> ResultInfo = new ResultInfo <QuestionPanel>()
            {
                Status      = false,
                Description = "Failed|Login"
            };
            QuestionPanel obj = new QuestionPanel();

            Social_Student PageObj = new Social_Student();
            User_Backend   bck     = new User_Backend();


            obj.ExamTypeDetails = PageObj.ViewExamType();
            obj.typeOfQues      = bck.GetQuestionType();

            ResultInfo.Info = obj;


            if (ResultInfo.Info != null)
            {
                ResultInfo.Description = "Success| Get Results";
                ResultInfo.Status      = true;
            }
            return(Json(ResultInfo, JsonRequestBehavior.AllowGet));
        }
コード例 #3
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));
        }
コード例 #4
0
        public JsonResult GetTopicTypeBySubjectTypeForQuestionPanel(long ExamID, long SubjectID)
        {
            ResultInfo <List <ExamTopic> > ResultInfo = new ResultInfo <List <ExamTopic> >()
            {
                Status      = false,
                Description = "Failed|Login"
            };
            List <ExamTopic> nm      = new List <ExamTopic>();
            Social_Student   PageObj = new Social_Student();

            if (ExamID > 0)
            {
                nm = PageObj.GetTopicTypeBySubjectTypeForMockTest(ExamID, SubjectID);
                ResultInfo.Info = nm;
            }
            if (ResultInfo.Info != null)
            {
                ResultInfo.Description = "Success| Get class name with id ";
                ResultInfo.Status      = true;
            }
            return(Json(ResultInfo, JsonRequestBehavior.AllowGet));
        }