Gestito elenco clienti e prospect in lista contatti
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user