Ok so i've got a flowchart system, with models of:
Question,End Result, Answer
A Question has:
ID
List<answer>
Value
Answer has:
ID
NextQuestionID
CurrentQuestionID
ResultID
Value
Result has:
ID
Value
Now some of the routes point to the same question (i.e 2 routes can point to question ID 2)
at the moment to load the question, when a answer is clicked it passes a nextQuestionId and this is used to load the question. Now the answers are then loaded by context.Answers(a=> a.CurrentQuestionId == currentQuestion.Id)
problem is with this, there could be 4-6answers against that questionID, but each answer will route to somewhere diffferent.
Can anyone think of a way to load the answers for that Question, without having to type in the question more than once and giving it a different ID?