示例#1
0
        public List<ContentDateTally> GetSiteDates(int iTakeTop)
        {
            List<ContentDateTally> lstNav = new List<ContentDateTally>();
            if (iTakeTop < 0) {
                iTakeTop = 100000;
            }
            using (SiteNavHelper navHelper = new SiteNavHelper()) {
                lstNav = navHelper.GetMonthBlogUpdateList(SiteData.CurrentSiteID, iTakeTop, !SecurityData.IsAuthEditor);
            }

            lstNav.RemoveAll(x => x.Count < 1);
            lstNav = lstNav.OrderByDescending(x => x.TallyDate).ToList();

            return lstNav;
        }