Carrotware.CMS.Core.ContentPageHelper.GetLatest C# (CSharp) Method

GetLatest() public method

public GetLatest ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
return List
        public List<ContentPage> GetLatest(Guid siteID, int iUpdates, bool bActiveOnly)
        {
            List<ContentPage> lstContent = (from ct in CannedQueries.GetLatestContentList(db, siteID, bActiveOnly)
                                            orderby ct.GoLiveDate descending
                                            select new ContentPage(ct)).Take(iUpdates).ToList();

            return lstContent;
        }