internal static DM.Presentation Build(SM.Presentation presentation) { if (presentation != null) { List <DM.Creator> creators = new List <DM.Creator>(); creators.AddRange(presentation.Authors != null ? presentation.Authors.Select(x => Build(x, DE.CreatorType.Author)).ToList() : new List <DM.Creator>()); creators.AddRange(presentation.Translators != null ? presentation.Translators.Select(x => Build(x, DE.CreatorType.Translator)).ToList() : new List <DM.Creator>()); return(new DM.Presentation() { TitleFull = presentation.TitleFull, TitleShort = presentation.TitleShort, Creators = creators, AccessedDate = Build(presentation.AccessedDate), IssuedDate = Build(presentation.IssuedDate), Abstract = presentation.Abstract, Language = presentation.Language, Note = presentation.Note, URL = presentation.URL, PublisherLocation = presentation.PublisherLocation, EventName = presentation.EventName, EventPlace = presentation.EventPlace, Genre = presentation.Genre }); } else { return(null); } }
public SM.Citation Presentation(SE.Style style, SE.Format format, [FromBody] SM.Presentation presentation) { return(_citationManager.CreateCitationPresentation(style, format, presentation)); }
internal SM.Citation CreateCitationPresentation(SE.Style style, SE.Format format, SM.Presentation presentation) { return(ContentItemFactory.Build(_citationProcessor.CreateCitationPresentation(ContentItemFactory.Build(style), ContentItemFactory.Build(format), ContentItemFactory.Build(presentation)))); }