Beispiel #1
0
        public IEnumerable <IArchive> GetSpecialArchives(string catPath, bool includeChild, int number, int skipSize)
        {
            var ic = _catRepo.GetCategoryByPath(SiteId, catPath);

            int[] catIdArray;
            if (includeChild)
            {
                catIdArray = GetCatArrayByPath(ic);
            }
            else
            {
                catIdArray = new int[] { ic.GetDomainId() }
            };
            return(_archiveRep.GetSpecialArchives(SiteId, catIdArray, number, skipSize));
        }