From aa40ae2e7ae5724396b52d4093883a5f78b25751 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 26 May 2026 11:43:41 +0100 Subject: [PATCH] Added missing mappings profiles --- PyroFetes/MappingProfiles/DtoToEntityMappings.cs | 4 +--- PyroFetes/MappingProfiles/EntityToDtoMappings.cs | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PyroFetes/MappingProfiles/DtoToEntityMappings.cs b/PyroFetes/MappingProfiles/DtoToEntityMappings.cs index 5b7d8b7..689f5ae 100644 --- a/PyroFetes/MappingProfiles/DtoToEntityMappings.cs +++ b/PyroFetes/MappingProfiles/DtoToEntityMappings.cs @@ -81,8 +81,6 @@ public class DtoToEntityMappings : Profile CreateMap() .ForMember(dest => dest.Id, opt => opt.Ignore()); - CreateMap() - .ForMember(dest => dest.ProductId, opt => opt.Ignore()) - .ForMember(dest => dest.WarehouseId, opt => opt.Ignore()); + CreateMap(); } } \ No newline at end of file diff --git a/PyroFetes/MappingProfiles/EntityToDtoMappings.cs b/PyroFetes/MappingProfiles/EntityToDtoMappings.cs index 0e10014..6e4c985 100644 --- a/PyroFetes/MappingProfiles/EntityToDtoMappings.cs +++ b/PyroFetes/MappingProfiles/EntityToDtoMappings.cs @@ -11,6 +11,7 @@ using PyroFetes.DTO.QuotationProduct.Response; using PyroFetes.DTO.SettingDTO.Response; using PyroFetes.DTO.Supplier.Response; using PyroFetes.DTO.User.Response; +using PyroFetes.DTO.WareHouse.Response; using PyroFetes.DTO.WareHouseProduct.Response; using PyroFetes.Models; @@ -56,5 +57,7 @@ public class EntityToDtoMappings : Profile CreateMap(); CreateMap(); + + CreateMap(); } } \ No newline at end of file