add all docs
This commit is contained in:
parent
d692a2e519
commit
edff901b52
4 changed files with 49 additions and 0 deletions
|
|
@ -3,8 +3,16 @@ using SurveyBackend.DTOs;
|
|||
|
||||
namespace SurveyBackend.Mappers;
|
||||
|
||||
/// <summary>
|
||||
/// Маппер всего связанного с авторизацией
|
||||
/// </summary>
|
||||
public static class AuthMapper
|
||||
{
|
||||
/// <summary>
|
||||
/// Перегнать схему регистрации в нового юзера
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
public static User UserRegistrationToModel(UserRegistrationDto dto) => new User
|
||||
{
|
||||
Email = dto.Email,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue