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