using AutoMapper; using PyroFetes.DTO.Deliverer.Response; using PyroFetes.DTO.DeliveryNote.Response; using PyroFetes.DTO.Price.Response; using PyroFetes.DTO.Product.Response; using PyroFetes.DTO.ProductDelivery.Response; using PyroFetes.DTO.PurchaseOrder.Response; using PyroFetes.DTO.PurchaseProduct.Response; using PyroFetes.DTO.Quotation.Response; using PyroFetes.DTO.QuotationProduct.Response; using PyroFetes.DTO.SettingDTO.Response; using PyroFetes.DTO.Supplier.Response; using PyroFetes.DTO.User.Response; using PyroFetes.DTO.WareHouseProduct.Response; using PyroFetes.Models; namespace PyroFetes.MappingProfiles; public class EntityToDtoMappings : Profile { public EntityToDtoMappings() { CreateMap(); CreateMap(); CreateMap() .ForMember(dest => dest.Products, opt => opt.MapFrom(src => src.ProductDeliveries)); CreateMap(); CreateMap() .ForMember(dest => dest.References, opt => opt.MapFrom(src => src.Reference)); CreateMap(); CreateMap() .ForMember(dest => dest.Products, opt => opt.MapFrom(src => src.PurchaseProducts)); CreateMap(); CreateMap() .ForMember(dest => dest.Products, opt => opt.MapFrom(src => src.QuotationProducts)); CreateMap(); CreateMap(); CreateMap(); CreateMap(); } }