20 lines
513 B
C#
20 lines
513 B
C#
using ApplicationHub.Data.InMemory.Authentication.Entities;
|
|
using ApplicationHub.Domain.Contracts.Authentication.Models;
|
|
using AutoMapper;
|
|
|
|
namespace ApplicationHub.Data.InMemory.Configuration;
|
|
|
|
public class MappingProfile : Profile
|
|
{
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<UserDto, User>();
|
|
CreateMap<User, UserDto>();
|
|
|
|
CreateMap<GroupDto, Group>();
|
|
CreateMap<Group, GroupDto>();
|
|
|
|
CreateMap<RightDto, Right>();
|
|
CreateMap<Right, RightDto>();
|
|
}
|
|
} |