@{ ViewBag.Title = "Learning"; Layout = "~/Views/Shared/_LayoutLearning.cshtml"; } @using NEducation.NEduService; @using NEducation.Content.Texts; @model NEducation.Models.GrammarModel
15
@for (int i = 0; i < Model.questions.Count; i++) { NEducation.Code.Question question = Model.questions[i]; //String correct = (question.answerTrue == "1" ? question.answer1 : // question.answerTrue == "2" ? question.answer2 : // question.answerTrue == "3" ? question.answer3 : question.answer4); // multi choice var listCorrect = question.answerTrue.Split(',');

@*@NEducation.Content.Texts.Lang.QuestionBegin*@ @question.description

@*

@question.content

*@ @{ if (question.contentType == NEducation.Controllers.UtilsController.GetContentType.AUDIO_FILE || question.contentType == NEducation.Controllers.UtilsController.GetContentType.AUDIO_LINK) {
} else if (question.contentType == NEducation.Controllers.UtilsController.GetContentType.VIDEO_LINK) { } else if (question.contentType == NEducation.Controllers.UtilsController.GetContentType.VIDEO_FILE) { } else if (question.contentType == NEducation.Controllers.UtilsController.GetContentType.TEXT_TYPE) {

@question.content

} else if (question.contentType == NEducation.Controllers.UtilsController.GetContentType.PICTURE_FILE) { } }
@*img*@
@for (int j = 0; j < listCorrect.Length; j++) { var correctAnswer = listCorrect[j] == "1" ? question.answer1 : listCorrect[j] == "2" ? question.answer2 : listCorrect[j] == "3" ? question.answer3 : question.answer4;

@correctAnswer n

} @*

@correct n

*@
}