public List <ContentDateTally> GetMonthBlogUpdateList(Guid siteID, int iUpdates, bool bActiveOnly) { SiteData site = SiteData.GetSiteFromCache(siteID); List <carrot_ContentTally> lstContentTally = db.carrot_BlogMonthlyTallies(siteID, bActiveOnly, iUpdates).ToList(); List <ContentDateTally> lstContent = (from ct in lstContentTally orderby ct.DateMonth descending select(new ContentDateTally { DateCaption = ct.DateSlug, TallyDate = ct.DateMonth ?? DateTime.Now, UseCount = ct.ContentCount ?? 0, TheSite = site })).ToList(); return(lstContent); }
public List <IContentMetaInfo> GetMonthBlogUpdateList(Guid siteID, int iUpdates, bool bActiveOnly) { SiteData site = SiteData.GetSiteFromCache(siteID); List <carrot_ContentTally> lstContentTally = db.carrot_BlogMonthlyTallies(siteID, bActiveOnly, iUpdates).ToList(); List <IContentMetaInfo> lstContent = (from ct in lstContentTally orderby ct.DateMonth descending select(IContentMetaInfo)( new ContentDateTally { DateCaption = ct.DateSlug, GoLiveDate = Convert.ToDateTime(ct.DateMonth), UseCount = Convert.ToInt32(ct.ContentCount), TheSite = site, TallyID = Guid.NewGuid() })).ToList(); return(lstContent); }