22 lines
714 B
C#
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();
|
|
}
|
|
}
|
|
}
|