added unsecure survey edits

This commit is contained in:
Вячеслав 2025-05-13 18:46:14 +05:00
parent ae1a8d2b97
commit dc6bca6b6e
3 changed files with 30 additions and 0 deletions

View file

@ -24,6 +24,14 @@ public static class SurveyMapper
};
}
public static Survey UpdateDtoToModel(UpdateSurveyDto dto, int userId, int surveyId) => new Survey
{
Id = surveyId,
Title = dto.Title,
Description = dto.Description,
CreatedBy = userId
};
/// <summary>
/// Модель в выходную схему
/// </summary>