public GetMonthBlogUpdateList ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List |
||
siteID | System.Guid | |
iUpdates | int | |
bActiveOnly | bool | |
return | List |
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;
}