using CPRNIMS.Infrastructure.Dto.Canvass.Request; using CPRNIMS.Infrastructure.Dto.Canvass.Response; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoMapper; using CPRNIMS.Infrastructure.ViewModel.Common; using CPRNIMS.Infrastructure.Entities.Canvass; namespace CPRNIMS.Domain.Profile.Canvass { public class SupplierRequestProfile : AutoMapper.Profile { public SupplierRequestProfile() { // 1. THIS IS THE MISSING LINK: Request -> Entity CreateMap(); // 2. Entity -> Response CreateMap(); // 3. Response <-> Request (Use ReverseMap to handle both directions automatically) CreateMap().ReverseMap(); } } }