diff --git a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs index 06a18f846..5ce65b301 100644 --- a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs +++ b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs @@ -139,10 +139,10 @@ namespace IRaCIS.Core.Application.Contracts { await VerifyIsQCConfirmedAsync(trialId); - + var maxShowOrder = await _trialQcQuestionRepository.Where(x => x.TrialId == trialId).MaxAsync(x => x.ShowOrder); batchList.ForEach(x => { - + x.ShowOrder= maxShowOrder++; x.SystemQuestionId = x.Id; x.Id = NewId.NextGuid(); @@ -158,10 +158,11 @@ namespace IRaCIS.Core.Application.Contracts } else { - + item.ParentId = parent.Id; } } + var batchConfigList = _mapper.Map>(batchList);