Gestito elenco clienti e prospect in lista contatti

This commit is contained in:
2025-07-10 12:40:30 +02:00
parent 65e48777e6
commit 8c521dc81e
17 changed files with 284 additions and 136 deletions

View File

@@ -9,5 +9,15 @@ public class MappingProfile : Profile
public MappingProfile()
{
CreateMap<StbActivity, ActivityDTO>();
// Mapping da AnagClie a ContactDTO
CreateMap<AnagClie, ContactDTO>()
.ForMember(dest => dest.CodContact, opt => opt.MapFrom(src => src.CodAnag))
.ForMember(dest => dest.IsContact, opt => opt.MapFrom(src => true));
// Mapping da PtbPros a ContactDTO
CreateMap<PtbPros, ContactDTO>()
.ForMember(dest => dest.CodContact, opt => opt.MapFrom(src => src.CodPpro))
.ForMember(dest => dest.IsContact, opt => opt.MapFrom(src => false));
}
}