Added missing mappings profiles

This commit is contained in:
2026-05-26 11:43:41 +01:00
parent ed59efe4f8
commit aa40ae2e7a
2 changed files with 4 additions and 3 deletions
@@ -81,8 +81,6 @@ public class DtoToEntityMappings : Profile
CreateMap<PatchUserPasswordDto, User>()
.ForMember(dest => dest.Id, opt => opt.Ignore());
CreateMap<PatchWareHouseProductQuantityDto, WarehouseProduct>()
.ForMember(dest => dest.ProductId, opt => opt.Ignore())
.ForMember(dest => dest.WarehouseId, opt => opt.Ignore());
CreateMap<PatchWareHouseProductQuantityDto, WarehouseProduct>();
}
}
@@ -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<User, GetUserDto>();
CreateMap<WarehouseProduct, GetWareHouseProductDto>();
CreateMap<Warehouse, GetWareHouseDto>();
}
}