This commit is contained in:
he
2022-12-01 15:12:58 +08:00
parent bc05bc38f6
commit 6ec64c9744
2 changed files with 13 additions and 4 deletions
@@ -402,7 +402,7 @@ namespace IRaCIS.Application.Services
TrialReadingCriterionId = indto.ReadingQuestionCriterionTrialId,
});
var relation = relationList.Where(x => x.QuestionId == indto.Id).FirstOrDefault();
var relation = relationList.FirstOrDefault(x => x.QuestionId == indto.Id);
List<CalculateInfo> calculateInfoList = new List<CalculateInfo>();
try
{
@@ -414,7 +414,7 @@ namespace IRaCIS.Application.Services
}
relation.CalculateQuestionList = calculateInfoList;
this.VerifyCalculateRelation(relationList, indto.Id.Value, indto.Id.Value);
}
@@ -629,7 +629,7 @@ namespace IRaCIS.Application.Services
ReadingQuestionId = indto.ReadingQuestionId,
});
var relation = relationList.Where(x => x.QuestionId == indto.Id).FirstOrDefault();
var relation = relationList.FirstOrDefault(x => x.QuestionId == indto.Id);
List<CalculateInfo> calculateInfoList = new List<CalculateInfo>();
try
{
@@ -641,7 +641,7 @@ namespace IRaCIS.Application.Services
}
relation.CalculateQuestionList = calculateInfoList;
this.VerifyCalculateRelation(relationList, indto.Id.Value, indto.Id.Value);
}