added unsecure survey edits
This commit is contained in:
parent
ae1a8d2b97
commit
dc6bca6b6e
3 changed files with 30 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue