16 lines
411 B
C#
16 lines
411 B
C#
|
|
using AutoMapper;
|
||
|
|
using Kurs.Platform.Entities;
|
||
|
|
|
||
|
|
namespace Kurs.Platform.Orders;
|
||
|
|
|
||
|
|
public class OrderApplicationAutoMapperProfile : Profile
|
||
|
|
{
|
||
|
|
public OrderApplicationAutoMapperProfile()
|
||
|
|
{
|
||
|
|
CreateMap<Product, ProductDto>().ReverseMap();
|
||
|
|
CreateMap<PaymentMethod, PaymentMethodDto>();
|
||
|
|
CreateMap<InstallmentOption, InstallmentOptionDto>();
|
||
|
|
CreateMap<Order, OrderDto>();
|
||
|
|
}
|
||
|
|
}
|