i have a model that has a Collections of "Questions". Each Question has a collection of "PossibleAnswers". The possible answer objects have an isAnswer property which should be bound to the selected radio button (in the group for each question) that represents the question.
I am new to MVC and really not sure how to build the view so that the posted model will have the collection of possibleanswers for each question with one of the objects having the isAnswer property set as true, based on the selection from the associated radio button group.
Right now the view should build a radio button group/list for each question with the possibleanswer collection of the question representing a radio button choice related to the question. Can i do nested loop in razor? do you use partials? how does MVC know how to rebuild the model based on the view when i post it??