コード例 #1
0
 public int GetQuestionCount(ThemeModel themeModel)
 {
     return questionRepository.GetQuestionCountByThemeId(themeModel.Id);
 }
コード例 #2
0
 public ActionResult Test(ThemeModel themeModel)
 {
     QuestionModel questionModel = testingService.GetFirstQuestionModel(themeModel);
     return View(questionModel);
 }
コード例 #3
0
        public QuestionModel GetFirstQuestionModel(ThemeModel themeModel)
        {
            Question question = questionRepository.GetFirstQuestionByThemeId(themeModel.Id);

            return question.ToQuestionModel();
        }
コード例 #4
0
 public ActionResult TestInfo(ThemeModel themeModel)
 {
     ViewBag.QuestionCount = testingService.GetQuestionCount(themeModel);
     return View(themeModel);
 }