diff --git a/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs b/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs index e53d5a3f9..4c2fa0e6d 100644 --- a/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs +++ b/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs @@ -89,7 +89,7 @@ namespace IRaCIS.Core.Application.Contracts public class TrialQCQuestionConfigureBatchAdd { - public Guid Id { get; set; } + public Guid? Id { get; set; } public string QuestionName { get; set; } = string.Empty; public bool IsRequired { get; set; } public bool IsEnable { get; set; } diff --git a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs index 43e847dcf..1eb3379ed 100644 --- a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs +++ b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs @@ -143,7 +143,7 @@ namespace IRaCIS.Core.Application.Contracts batchList.ForEach(x => { x.ShowOrder= maxShowOrder++; - x.SystemQuestionId = x.Id; + x.SystemQuestionId = x.Id.Value; x.Id = NewId.NextGuid(); });