0
0
mirror of https://github.com/Shchoholiev/shopping-assistant-api.git synced 2025-06-29 18:21:11 +00:00
shopping-assistant-api/ShoppingAssistantApi.Application/MappingProfiles/ProductProfile.cs

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();
}
}