25 lines
740 B
C#
25 lines
740 B
C#
|
|
using AutoMapper;
|
|||
|
|
using Kurs.Platform.Blog;
|
|||
|
|
using Kurs.Platform.Demos;
|
|||
|
|
using Kurs.Platform.Entities;
|
|||
|
|
using Kurs.Platform.Orders;
|
|||
|
|
using Kurs.Platform.Services;
|
|||
|
|
|
|||
|
|
namespace Kurs.Platform.Public;
|
|||
|
|
|
|||
|
|
public class PublicAutoMapperProfile : Profile
|
|||
|
|
{
|
|||
|
|
public PublicAutoMapperProfile()
|
|||
|
|
{
|
|||
|
|
CreateMap<Demo, DemoDto>().ReverseMap();
|
|||
|
|
CreateMap<Service, ServiceDto>();
|
|||
|
|
CreateMap<BlogCategory, BlogCategoryDto>();
|
|||
|
|
CreateMap<BlogPost, BlogPostDto>();
|
|||
|
|
CreateMap<BlogPost, BlogPostListDto>();
|
|||
|
|
CreateMap<Product, ProductDto>().ReverseMap();
|
|||
|
|
CreateMap<PaymentMethod, PaymentMethodDto>();
|
|||
|
|
CreateMap<InstallmentOption, InstallmentOptionDto>();
|
|||
|
|
CreateMap<Order, OrderDto>();
|
|||
|
|
}
|
|||
|
|
}
|