mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-03 16:19:46 +00:00
16 lines
432 B
C#
16 lines
432 B
C#
using AutoMapper;
|
|
using ShoppingAssistantApi.Application.Models.CreateDtos;
|
|
using ShoppingAssistantApi.Application.Models.Dtos;
|
|
using ShoppingAssistantApi.Domain.Entities;
|
|
|
|
namespace ShoppingAssistantApi.Application.MappingProfiles;
|
|
public class ProductProfile : Profile
|
|
{
|
|
public ProductProfile()
|
|
{
|
|
CreateMap<Product, ProductDto>().ReverseMap();
|
|
|
|
CreateMap<ProductCreateDto, Product>().ReverseMap();
|
|
}
|
|
}
|