erp-platform/api/src/Kurs.Platform.Application/Public/PublicAutoMapperProfile.cs

29 lines
878 B
C#
Raw Normal View History

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