Added missing mappings profiles
This commit is contained in:
@@ -81,8 +81,6 @@ public class DtoToEntityMappings : Profile
|
|||||||
CreateMap<PatchUserPasswordDto, User>()
|
CreateMap<PatchUserPasswordDto, User>()
|
||||||
.ForMember(dest => dest.Id, opt => opt.Ignore());
|
.ForMember(dest => dest.Id, opt => opt.Ignore());
|
||||||
|
|
||||||
CreateMap<PatchWareHouseProductQuantityDto, WarehouseProduct>()
|
CreateMap<PatchWareHouseProductQuantityDto, WarehouseProduct>();
|
||||||
.ForMember(dest => dest.ProductId, opt => opt.Ignore())
|
|
||||||
.ForMember(dest => dest.WarehouseId, opt => opt.Ignore());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,6 +11,7 @@ using PyroFetes.DTO.QuotationProduct.Response;
|
|||||||
using PyroFetes.DTO.SettingDTO.Response;
|
using PyroFetes.DTO.SettingDTO.Response;
|
||||||
using PyroFetes.DTO.Supplier.Response;
|
using PyroFetes.DTO.Supplier.Response;
|
||||||
using PyroFetes.DTO.User.Response;
|
using PyroFetes.DTO.User.Response;
|
||||||
|
using PyroFetes.DTO.WareHouse.Response;
|
||||||
using PyroFetes.DTO.WareHouseProduct.Response;
|
using PyroFetes.DTO.WareHouseProduct.Response;
|
||||||
using PyroFetes.Models;
|
using PyroFetes.Models;
|
||||||
|
|
||||||
@@ -56,5 +57,7 @@ public class EntityToDtoMappings : Profile
|
|||||||
CreateMap<User, GetUserDto>();
|
CreateMap<User, GetUserDto>();
|
||||||
|
|
||||||
CreateMap<WarehouseProduct, GetWareHouseProductDto>();
|
CreateMap<WarehouseProduct, GetWareHouseProductDto>();
|
||||||
|
|
||||||
|
CreateMap<Warehouse, GetWareHouseDto>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user