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

GetPostsByDateRange() public method

public GetPostsByDateRange ( System.Guid siteID, System.DateTime dateMidpoint, int iDayRange, bool bActiveOnly ) : List
siteID System.Guid
dateMidpoint System.DateTime
iDayRange int
bActiveOnly bool
return List
        public List<ContentPage> GetPostsByDateRange(Guid siteID, DateTime dateMidpoint, int iDayRange, bool bActiveOnly)
        {
            DateTime dateBegin = dateMidpoint.AddDays(0 - iDayRange);
            DateTime dateEnd = dateMidpoint.AddDays(iDayRange);

            List<ContentPage> lstContent = CompiledQueries.PostsByDateRange(db, siteID, dateBegin, dateEnd, bActiveOnly).Select(ct => new ContentPage(ct)).ToList();

            return lstContent;
        }