public ArchiveDto GetArchiveById(int siteId, int archiveId) { IContentContainer ic = this._contentRep.GetContent(siteId); IArchive archive = ic.GetArchiveById(archiveId); if (archive == null) { return(default(ArchiveDto)); } return(ArchiveDto.ConvertFrom(archive, true, true, true)); }
public ArchiveDto GetSameCategoryNextArchive(int siteId, int archiveId) { IContentContainer ic = this._contentRep.GetContent(siteId); IArchive archive = ic.GetNextSiblingArchive(archiveId); if (archive == null) { return(default(ArchiveDto)); } return(ArchiveDto.ConvertFrom(archive, true, false, false)); }
public ArchiveDto GetArchiveByIdOrAlias(int siteId, string id) { var ic = _contentRep.GetContent(siteId); var archive = ic.GetArchive(id); if (archive == null) { return(default(ArchiveDto)); } return(ArchiveDto.ConvertFrom(archive, true, true, true)); }