Uat_Study
parent
9af28f3fdb
commit
e66591c871
|
@ -191,7 +191,12 @@ namespace IRaCIS.Application.Services
|
|||
, (l, r) => new { question = l, global = r })
|
||||
.SelectMany(lr => lr.global.DefaultIfEmpty(), (lr, r) => new GlobalQuestionInfo
|
||||
{
|
||||
Answer = lr.global == null ? (inDto.UsingOriginalData?lr.question.Answer: string.Empty) : lr.global.Select(x => x.Answer).FirstOrDefault(),
|
||||
Answer = lr.global == null|| lr.global.Count()==0 ?
|
||||
(inDto.UsingOriginalData?lr.question.Answer: string.Empty) :
|
||||
|
||||
(lr.global.Select(x => x.Answer).FirstOrDefault().IsNullOrEmpty()&& inDto.UsingOriginalData?
|
||||
lr.question.Answer:lr.global.Select(x => x.Answer).FirstOrDefault()
|
||||
),
|
||||
QuestionId = lr.question.QuestionId,
|
||||
QuestionName = lr.question.QuestionName,
|
||||
Type = lr.question.Type,
|
||||
|
|
Loading…
Reference in New Issue