add all docs

This commit is contained in:
Вячеслав 2025-04-27 16:06:17 +05:00
parent d692a2e519
commit edff901b52
4 changed files with 49 additions and 0 deletions

View file

@ -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,