shopping-assistant-api/ShoppingAssistantApi.Application/MappingProfiles/RoleProfile.cs
2023-09-22 23:02:20 +03:00

15 lines
416 B
C#

using AutoMapper;
using ShoppingAssistantApi.Application.Models.CreateDtos;
using ShoppingAssistantApi.Application.Models.Dtos;
using ShoppingAssistantApi.Domain.Entities;
namespace ShoppingAssistantApi.Application.MappingProfiles;
public class RoleProfile : Profile
{
public RoleProfile()
{
CreateMap<Role, RoleDto>().ReverseMap();
CreateMap<RoleCreateDto, Role>().ReverseMap();
}
}