registration and authorization

This commit is contained in:
Вячеслав 2025-04-17 01:06:08 +05:00
parent 2b5f468b84
commit 4423dc360f
12 changed files with 136 additions and 6 deletions

View file

@ -0,0 +1,17 @@
using SurveyBackend.Core.Models;
using SurveyBackend.Core.Services;
using SurveyBackend.DTOs;
using SurveyBackend.Infrastructure.Services;
namespace SurveyBackend.Mappers.UserDTOs;
public static class UserRegistrationMapper
{
public static User UserRegistrationToModel(UserRegistrationDto dto) => new User
{
Email = dto.Email,
FirstName = dto.FirstName,
LastName = dto.LastName,
Password = dto.Password,
};
}