mappers to new naming

This commit is contained in:
Вячеслав 2025-05-13 19:15:45 +05:00
parent cc2d98c710
commit 2cb7fdbfb7
2 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ public static class SurveyMapper
/// <param name="dto"></param>
/// <param name="userId"></param>
/// <returns></returns>
public static Survey CreateDtoToModel(CreateSurveyDto dto, int userId)
public static Survey CreateDtoToModel(SurveyCreateDto dto, int userId)
{
return new Survey
{
@ -24,7 +24,7 @@ public static class SurveyMapper
};
}
public static Survey UpdateDtoToModel(UpdateSurveyDto dto, int userId, int surveyId) => new Survey
public static Survey UpdateDtoToModel(SurveyUpdateDto dto, int userId, int surveyId) => new Survey
{
Id = surveyId,
Title = dto.Title,
@ -37,9 +37,9 @@ public static class SurveyMapper
/// </summary>
/// <param name="survey"></param>
/// <returns></returns>
public static OutputSurveyDto ModelToOutputDto(Survey survey)
public static SurveyOutputDto ModelToOutputDto(Survey survey)
{
return new OutputSurveyDto
return new SurveyOutputDto
{
Id = survey.Id,
Title = survey.Title,