diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs index 150ed2e9d..886233c8c 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs @@ -80,7 +80,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string TypeValue { get; set; } - public string AnswerGroup { get; set; } + public List AnswerGroup { get; set; } } diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs index f3bc4d34f..a36fcc753 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs @@ -170,7 +170,7 @@ namespace IRaCIS.Application.Services var result = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion) .Select(x => new GetTrialCriterionJudgeQuestionListOutDto() { - AnswerGroup = x.AnswerGroup, + AnswerGroup = JsonConvert.DeserializeObject>(x.AnswerGroup.IsNullOrEmpty()?"[]": x.AnswerGroup), QuestionName = x.QuestionName, TypeValue =x.TypeValue, ReadingQuestionTrialId = x.Id