public int GetQuestionCount(ThemeModel themeModel)
 {
     return questionRepository.GetQuestionCountByThemeId(themeModel.Id);
 }
 public ActionResult Test(ThemeModel themeModel)
 {
     QuestionModel questionModel = testingService.GetFirstQuestionModel(themeModel);
     return View(questionModel);
 }
        public QuestionModel GetFirstQuestionModel(ThemeModel themeModel)
        {
            Question question = questionRepository.GetFirstQuestionByThemeId(themeModel.Id);

            return question.ToQuestionModel();
        }
 public ActionResult TestInfo(ThemeModel themeModel)
 {
     ViewBag.QuestionCount = testingService.GetQuestionCount(themeModel);
     return View(themeModel);
 }