Is it possible to be able to add multiple items to a list while in a view? Let's say that I have the following data contract below:
public class Question
{
public int QuestionID { get; set; }
public string Name { get; set; }
public virtual List<AdditionalAnswer> AdditionalAnswers { get; set; }
}
public class AdditionalAnswer
{
public int AdditionalAnswerID { get; set; }
public AnswerTypeAnswerTypeEnum AnswerType { get; set; }
}
If I was creating a new Question
, how would I add multiple AdditionalAnswers
while still on the Edit
view without doing any post-backs?