Exemple #1
0
        public ActionResult Index()
        {
            ViewBag.Themes = themeService.GetThemes().Select(x => x.Description);

            IEnumerable <QuestionLine> questions = questionLineService.GetQuestionLines();

            return(View(questions));
        }
Exemple #2
0
        public PartialViewResult GetQuestions()
        {
            //New questions are on the top
            IEnumerable <QuestionLine> questions = questionLineService.GetQuestionLines().OrderByDescending(x => x.Id);

            return(PartialView("Modal/_Questions", questions));
        }