mappers to new naming
This commit is contained in:
parent
cc2d98c710
commit
2cb7fdbfb7
2 changed files with 7 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ public static class QuestionMapper
|
|||
/// <param name="surveyId"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="BadRequestException"></exception>
|
||||
public static QuestionBase QuestionCreationToModel(CreateQuestionDto dto, int surveyId)
|
||||
public static QuestionBase QuestionCreationToModel(QuestionCreateDto dto, int surveyId)
|
||||
{
|
||||
return dto.QuestionType.ToLower() switch
|
||||
{
|
||||
|
|
@ -47,10 +47,10 @@ public static class QuestionMapper
|
|||
/// </summary>
|
||||
/// <param name="question"></param>
|
||||
/// <returns></returns>
|
||||
public static OutputQuestionDto ModelToQuestionDto(QuestionBase question)
|
||||
public static QuestionOutputDto ModelToQuestionDto(QuestionBase question)
|
||||
{
|
||||
var withAnswerVariants = question.GetType() != typeof(TextQuestion);
|
||||
return new OutputQuestionDto
|
||||
return new QuestionOutputDto
|
||||
{
|
||||
Id = question.Id,
|
||||
SurveyId = question.SurveyId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue