コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }