add completions methods (not final)

This commit is contained in:
Вячеслав 2025-05-31 00:14:37 +05:00
parent 58b5b2b17d
commit c2f6ba6dde
4 changed files with 23 additions and 5 deletions

View file

@ -14,8 +14,9 @@ public static class CompletionMapper
public static CompletionOutputDto ModelToOutputDto(Completion model) => new CompletionOutputDto
{
Id = model.Id,
SurveyId = model.SurveyId,
CompletedBy = model.CompletedBy,
FinishedAt = model.FinishedAt,
Answers = model.Answers.Select(AnswerMapper.ModelToOutputDto).ToList(),
FinishedAt = model.FinishedAt
};
}