2025-08-20 10:31:56 +00:00
|
|
|
|
using AutoMapper;
|
2025-08-21 11:41:59 +00:00
|
|
|
|
using Kurs.Platform.Abouts;
|
2025-08-20 10:31:56 +00:00
|
|
|
|
using Kurs.Platform.Blog;
|
2025-08-21 11:41:59 +00:00
|
|
|
|
using Kurs.Platform.Contacts;
|
2025-08-20 10:31:56 +00:00
|
|
|
|
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>();
|
2025-08-21 11:41:59 +00:00
|
|
|
|
CreateMap<About, AboutDto>();
|
|
|
|
|
|
CreateMap<Contact, ContactDto>();
|
2025-08-20 10:31:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|