Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
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));
        }
Ejemplo n.º 3
0
        public JsonResult ViewExamType()
        {
            ResultInfo <List <ExamTypeDetails> > ResultInfo = new ResultInfo <List <ExamTypeDetails> >()
            {
                Status      = false,
                Description = "Failed|Login"
            };
            List <ExamTypeDetails> temp    = new List <ExamTypeDetails>();
            Social_Student         PageObj = new Social_Student();

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