Пример #1
0
        public List <ContentDateLinks> GetSingleMonthBlogUpdateList(SiteData currentSite, DateTime monthDate, bool bActiveOnly)
        {
            List <ContentDateLinks> lstContent = new List <ContentDateLinks>();
            int n = 0;

            monthDate = monthDate.AddDays(0 - monthDate.Day).AddDays(1);
            DateTime dateNow = monthDate;

            while (n < 28)
            {
                dateNow = monthDate.AddDays(n);

                ContentDateLinks cc = new ContentDateLinks();
                cc.TheSite  = currentSite;
                cc.UseCount = n;
                cc.PostDate = dateNow;
                lstContent.Add(cc);

                n = n + 3;
            }

            return(lstContent);
        }
		public List<ContentDateLinks> GetSingleMonthBlogUpdateList(SiteData currentSite, DateTime monthDate, bool bActiveOnly) {
			List<ContentDateLinks> lstContent = new List<ContentDateLinks>();
			int n = 0;
			monthDate = monthDate.AddDays(0 - monthDate.Day).AddDays(1);
			DateTime dateNow = monthDate;

			while (n < 28) {
				dateNow = monthDate.AddDays(n);

				ContentDateLinks cc = new ContentDateLinks();
				cc.TheSite = currentSite;
				cc.UseCount = n;
				cc.PostDate = dateNow;
				lstContent.Add(cc);

				n = n + 3;
			}

			return lstContent;
		}