Compare commits

..

No commits in common. "16099cc6d831411c7af6e217bfa58c745a7708d7" and "1671141b120f818d2ee1647f87646d6fad8503ae" have entirely different histories.

1 changed files with 5 additions and 6 deletions

View File

@ -3317,15 +3317,14 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var liverSegmentation = await _dbContext.ReadingTableQuestionAnswer.Where(x => x.RowId == entity.RowId && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.liverSegmentation).Select(x => x.Answer).FirstOrDefaultAsync();
var generalId=new Guid();
if (entity.MarkId != null)
{
generalId = entity.MarkId.Value;
}
else if (entity.TableQuestionId == null && entity.QuestionId == null)
if (entity.TableQuestionId == null && entity.QuestionId == null)
{
generalId = entity.Id;
}
else if(entity.MarkId!=null)
{
generalId= entity.MarkId.Value;
}
else
{
generalId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.RowId.ToString(), entity.TableQuestionId.ToString(), "ReadingTaskQuestionMark");