Exemplo n.º 1
0
        public ActionResult Create([Bind(Include = "ID,Text,IsSingleAnswer,Answers")] QuestionViewModel questionViewModel)
        {
            if (ModelState.IsValid)
            {
                if (_Logic.Create(questionViewModel) != null)
                {
                    return(RedirectToAction("Create", "Exams"));
                }
            }

            return(View(questionViewModel));
        }