add all docs
This commit is contained in:
parent
d692a2e519
commit
edff901b52
4 changed files with 49 additions and 0 deletions
|
|
@ -3,8 +3,17 @@ using SurveyLib.Core.Models;
|
|||
|
||||
namespace SurveyBackend.Mappers;
|
||||
|
||||
/// <summary>
|
||||
/// Маппер всего про опросы
|
||||
/// </summary>
|
||||
public static class SurveyMapper
|
||||
{
|
||||
/// <summary>
|
||||
/// Схема создания в модель
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
public static Survey CreateDtoToModel(CreateSurveyDto dto, int userId)
|
||||
{
|
||||
return new Survey
|
||||
|
|
@ -15,6 +24,11 @@ public static class SurveyMapper
|
|||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Модель в выходную схему
|
||||
/// </summary>
|
||||
/// <param name="survey"></param>
|
||||
/// <returns></returns>
|
||||
public static OutputSurveyDto ModelToOutputDto(Survey survey)
|
||||
{
|
||||
return new OutputSurveyDto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue