mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
15 lines
457 B
C#
15 lines
457 B
C#
using Application.DataTransferObjects.Authentication;
|
|
using AutoMapper;
|
|
using Database.Entities;
|
|
|
|
namespace Application.Profiles;
|
|
|
|
public class AuthenticationProfile : Profile
|
|
{
|
|
public AuthenticationProfile()
|
|
{
|
|
CreateMap<RegisterRequestDto, User>()
|
|
.ForMember(des => des.UserName, opt => opt.MapFrom(src => src.Email))
|
|
.ForMember(des => des.NormalizedEmail, opt => opt.MapFrom(src => src.Email.ToUpper()));
|
|
}
|
|
} |