config.CreateMap<StatuteDocument, StatuteViewModel>()
.ForMember(x => x.Title, y => y.MapFrom(x => x.OriginalTitle))
.ForMember(x => x.HasFullText, y => y.MapFrom(x => x.FulltextStatus == FulltextStatus.Available))
.ForMember(x => x.FullText,
y => y.MapFrom(x => (x == null || !x.XmlDoc.Any()) ? string.Empty : x.XmlDoc[0].XmlDoc))
.ForMember(x => x.ParallelCitations,
y => y.MapFrom(src => new List<CitationViewModel> { Mapper.Map<CitationViewModel>(src.Citation) }));
--
You received this message because you are subscribed to the Google Groups "AutoMapper-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automapper-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AutoMapper-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automapper-users/G3z-fBm6EOc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automapper-use...@googlegroups.com.