add "me" endpoint

This commit is contained in:
Вячеслав 2025-05-13 18:09:06 +05:00
parent 98b38f645f
commit ae1a8d2b97
7 changed files with 49 additions and 10 deletions

View file

@ -1,23 +0,0 @@
using SurveyBackend.Core.Models;
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,
FirstName = dto.FirstName,
LastName = dto.LastName,
Password = dto.Password,
};
}