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

GetVersionHistory() public method

public GetVersionHistory ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
return List
        public List<ContentPage> GetVersionHistory(Guid siteID, Guid rootContentID)
        {
            List<ContentPage> content = CompiledQueries.cqGetVersionHistory(db, siteID, rootContentID).Select(ct => new ContentPage(ct)).ToList();

            return content;
        }

Usage Example

コード例 #1
0
		public void SetCurrent(Guid id) {
			this.Root_ContentID = id;

			using (ContentPageHelper pageHelper = new ContentPageHelper()) {
				this.ContentPage = pageHelper.FindContentByID(this.SiteID, id);

				this.History.DataSource = pageHelper.GetVersionHistory(this.SiteID, id);
				this.History.TotalRecords = this.History.DataSource.Count();
				this.History.PageSize = this.History.TotalRecords * 2;
			}
		}
All Usage Examples Of Carrotware.CMS.Core.ContentPageHelper::GetVersionHistory