Example #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);
        }
Example #2
0
        public ActionResult InputQuestion(QuestionModel model)
        {
            NodeStore.Ctx.InsertQuestion(model);

            return RedirectToAction("AddAnswer");
        }