add AnswerVariant
This commit is contained in:
parent
8a80013c94
commit
ae43e8c74c
10 changed files with 139 additions and 5 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using SurveyBackend.DTOs.AnswerVariant;
|
||||
using SurveyBackend.DTOs.Question;
|
||||
using SurveyBackend.Services.Exceptions;
|
||||
using SurveyLib.Core.Models;
|
||||
|
|
@ -88,9 +89,9 @@ public static class QuestionMapper
|
|||
};
|
||||
}
|
||||
|
||||
private static List<OutputAnswerVariantDto> AnswerVariantsToDto(IEnumerable<AnswerVariant> answerVariants)
|
||||
private static List<AnswerVariantOutputDto> AnswerVariantsToDto(IEnumerable<AnswerVariant> answerVariants)
|
||||
{
|
||||
return answerVariants.Select(av => new OutputAnswerVariantDto
|
||||
return answerVariants.Select(av => new AnswerVariantOutputDto
|
||||
{
|
||||
Id = av.Id,
|
||||
QuestionId = av.QuestionId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue