Example #1
0
        public dynamic CreateChapterPractice(PracticePostModel post)
        {
            W_ChapterPractice model = new W_ChapterPractice();

            model.QuestionStore_ID = post.storeId;
            model.AddTime          = DateTime.Now;
            model.StuId            = this.SafeGetStuId;
            return(Success(mapper.CreateChapterPractice(model, post.chapterId, post.questionType, post.questionCount, post.questionSource)));
        }
Example #2
0
 public dynamic CheckChapterQuestion(PracticePostModel post)
 {
     return(Success(mapper.CheckChapterQuestion(post.chapterId, post.questionList) ? "操作成功" : "操作失败"));
 }