Example #1
0
        public void InsertSubject(SubjectModel model)
        {
            var subject = new Subject(model.Id, model.Data, LevelTree.Peek().Question.Id);

            CreateNode(subject);
        }
Example #2
0
 public SubjectModel(Subject subject, AnswerListModel answer)
     : this(subject)
 {
     Answers = answer;
 }
Example #3
0
        public ActionResult InputSubject(SubjectModel model)
        {
            var subject = new Subject(model.Id, model.Data, model.ParentId);
            NodeStore.Ctx.CreateNode(subject);

            var answer = NodeStore.Ctx.LevelTree.Peek().Answers.Last();

            NodeStore.Ctx.CompleteCreateAnswer(new AnswerModel(answer), subject.Id);

            NodeStore.TmpNode = null;

            return RedirectToAction("AddAnswer");
        }
Example #4
0
 public SubjectModel(Subject subject)
 {
     Id = subject.Id;
     Data = subject.Data;
     ParentId = subject.ParentId;
 }