コード例 #1
0
        public ActionResult GetAllPagedExamQuestionByExamID(int ExamID, int skip)
        {
            PagedExamQuestionDetail pagedExamQuestionDetail = new PagedExamQuestionDetail();

            pagedExamQuestionDetail.pagedExamQuestion = Mapper.Map <PagedExamQuestion>(_examService.GetAllPagedExamQuestionByExamID(ExamID, skip, GlobalConst.Records.Take));
            pagedExamQuestionDetail.pagedExamQuestion.PagedRecords = GlobalConst.Records.Take;
            pagedExamQuestionDetail.Exam = Mapper.Map <Exam>(_examService.GetExamByID(ExamID));
            return(Json(pagedExamQuestionDetail, GlobalConst.Message.text_html));
        }
コード例 #2
0
        public ActionResult EditExam(string ExamID)
        {
            int _Id = Convert.ToInt32(DecryptString(ExamID.ToString()));
            PagedExamQuestionDetail pagedExamQuestionDetail = new PagedExamQuestionDetail();

            pagedExamQuestionDetail.pagedExamQuestion = Mapper.Map <PagedExamQuestion>(_examService.GetAllPagedExamQuestionByExamID(_Id, GlobalConst.Records.Skip, GlobalConst.Records.LandingTake));
            pagedExamQuestionDetail.pagedExamQuestion.PagedRecords = GlobalConst.Records.LandingTake;
            pagedExamQuestionDetail.Exam = Mapper.Map <Exam>(_examService.GetExamByID(_Id));
            return(View("Add", pagedExamQuestionDetail));
        }