Files
schengen-visa/SchengenVisaApi/Infrastructure/Automapper/Profiles/UserProfile.cs
2024-08-29 13:18:35 +03:00

19 lines
460 B
C#

using ApplicationLayer.Services.AuthServices.Common;
using ApplicationLayer.Services.Users.Models;
using AutoMapper;
using Domains.Users;
namespace Infrastructure.Automapper.Profiles;
public class UserProfile : Profile
{
public UserProfile()
{
CreateMap<AuthData, User>(MemberList.Destination)
.ForMember(u => u.Role,
opts => opts.Ignore());
CreateMap<User, UserModel>(MemberList.Destination);
}
}