Exemple #1
0
        public ActionResult Create()
        {
            var technologiesListItem = _technologiesService.GetListItemsTechnologies();
            var difficultiesListItem = _difficultyServices.GetListItemsDifficulties();
            var contactListItem      = _contactService.GetListItemContact();

            ViewBag.Difficulties = difficultiesListItem;
            ViewBag.Technologies = technologiesListItem;
            ViewBag.Contact      = contactListItem;

            return(View(new QuizzViewModel()));
        }
Exemple #2
0
        public ActionResult AddQuestion()
        {
            var technologiesListItem  = _technologiesService.GetListItemsTechnologies();
            var typeQuestionsListItem = _typeQuestionsService.GetListItemQuestionType();
            var difficultiesListItem  = _difficultyServices.GetListItemsDifficulties();

            ViewBag.Difficulties = difficultiesListItem;
            ViewBag.Technologies = technologiesListItem;
            ViewBag.QuestionType = typeQuestionsListItem;


            return(View(new QuestionViewModel()));
        }