|
|
@ -555,15 +555,21 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe |
|
|
|
detail.content = x.QuestionContent; |
|
|
|
detail.content = x.QuestionContent; |
|
|
|
detail.difficulty = questions1.FirstOrDefault(a => a.Id == x.QuestionId)?.DifficultyLevel; |
|
|
|
detail.difficulty = questions1.FirstOrDefault(a => a.Id == x.QuestionId)?.DifficultyLevel; |
|
|
|
//detail.answer = answers1.Where(x => x.IsCorrect == true).FirstOrDefault()?.QuestionNo; |
|
|
|
//detail.answer = answers1.Where(x => x.IsCorrect == true).FirstOrDefault()?.QuestionNo; |
|
|
|
|
|
|
|
|
|
|
|
//detail.answer1 = answers1.Where(x => x.IsCorrect == true).Select(x => x.QuestionNo).ToList(); |
|
|
|
//detail.answer1 = answers1.Where(x => x.IsCorrect == true).Select(x => x.QuestionNo).ToList(); |
|
|
|
detail.answerList = answers1.Select(x => new FromGhre_QuestionQuestionAnswerList() |
|
|
|
if (x.QuestionType == "Completion") |
|
|
|
{ |
|
|
|
detail.answer1 = answers1.Where(x => x.IsCorrect == true).Select(x => "").ToList(); |
|
|
|
No = x.QuestionNo, |
|
|
|
|
|
|
|
label = x.AnswerContent, |
|
|
|
if (x.QuestionType != "Completion") |
|
|
|
imageUrl = x.ImageUrl, |
|
|
|
|
|
|
|
imgWidthPc = x.ImageWidthPc, |
|
|
|
detail.answerList = answers1.Select(x => new FromGhre_QuestionQuestionAnswerList() |
|
|
|
imgWidthApp = x.ImageWidthApp, |
|
|
|
{ |
|
|
|
}).ToList(); |
|
|
|
No = x.QuestionNo, |
|
|
|
|
|
|
|
label = x.AnswerContent, |
|
|
|
|
|
|
|
imageUrl = x.ImageUrl, |
|
|
|
|
|
|
|
imgWidthPc = x.ImageWidthPc, |
|
|
|
|
|
|
|
imgWidthApp = x.ImageWidthApp, |
|
|
|
|
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
x.detail = detail; |
|
|
|
x.detail = detail; |
|
|
|
|
|
|
|
|
|
|
|