@(i + 1). @question.Text
@switch (question.Type)
{
case QuestionType.Text:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.CheckBox:
case QuestionType.Multiple_choice:
case QuestionType.Likert:
case QuestionType.Matrix:
case QuestionType.Demographic:
break;
case QuestionType.TrueFalse:
break;
case QuestionType.Open_ended:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.Image:
break;
case QuestionType.Slider:
@foreach(var answer in question.Answers)
{
}
break;
case QuestionType.Rating:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.Ranking:
@foreach (var answer in question.Answers)
{
-
@answer.Text
}
break;
default:
Unsupported question type.
break;
}
@if (i > 0)
{
}
@if (i < Model.Questions.Count - 1)
{
}