Project/Project.Application/MappingProfiles/BasicDtoMappingProfile.cs
2024-06-28 15:15:15 +02:00

22 lines
714 B
C#

using AutoMapper;
using Project.Application.DTOs.Incoming;
using Project.Application.DTOs.Outgoing;
using Project.Domain.Entities;
namespace Project.Application.MappingProfiles
{
public class BasicDtoMappingProfile : Profile
{
public BasicDtoMappingProfile()
{
CreateMap<Category, CreatingCategoryDto>().ReverseMap();
CreateMap<Category, ReadingCategoryDto>().ReverseMap();
CreateMap<Category, UpdatingCategoryDto>().ReverseMap();
CreateMap<Product, CreatingProductDto>().ReverseMap();
CreateMap<Product, ReadingProductDto>().ReverseMap();
CreateMap<Product, UpdatingProductDto>().ReverseMap();
}
}
}