コード例 #1
0
        public IEnumerable <IArchive> GetArchivesByViewCount(string catPath, bool includeChild, int number)
        {
            var ic = _catRepo.GetCategoryByPath(SiteId, catPath);

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