Beispiel #1
0
        public void InsertQuestion(QuestionModel model)
        {
            var question = new Question(model.Id, model.Data, LevelTree.Count > 0 ? LevelTree.Peek().Question.Id : 1);

            LevelTree.Push(new LevelTreeNode(question));
            CreateNode(question);
        }
        public ActionResult InputQuestion(QuestionModel model)
        {
            NodeStore.Ctx.InsertQuestion(model);

            return RedirectToAction("AddAnswer");
        }