registration and authorization
This commit is contained in:
parent
2b5f468b84
commit
4423dc360f
12 changed files with 136 additions and 6 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue