diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs index e7fc8bd81..644473483 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs @@ -1050,6 +1050,10 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto } + public class SubmitTableQuestionOutDto + { + public Guid RowId { get; set; } + } public class SubmitTableQuestionInDto { public Guid QuestionId { get; set; } diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs index 77ff8d1f0..5c7f40b3b 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs @@ -2194,8 +2194,9 @@ namespace IRaCIS.Application.Services /// /// [HttpPost] - public async Task SubmitTableQuestion(SubmitTableQuestionInDto inDto) + public async Task SubmitTableQuestion(SubmitTableQuestionInDto inDto) { + SubmitTableQuestionOutDto result = new SubmitTableQuestionOutDto(); await VerifyTaskIsSign(inDto.VisitTaskId); var tableQuestionIds = inDto.AnswerList.Select(x => x.TableQuestionId).ToList(); @@ -2269,6 +2270,8 @@ namespace IRaCIS.Application.Services rowInfo.SeriesId = inDto.SeriesId; rowInfo.VisitTaskId = inDto.VisitTaskId; + result.RowId = rowInfo.Id; + List answerList = inDto.AnswerList.Select(x => new ReadingTableQuestionAnswer() { Answer = x.Answer, @@ -2300,7 +2303,7 @@ namespace IRaCIS.Application.Services - return ResponseOutput.Ok(true); + return result; } ///