private void PerformCommonSaveRoot(SiteData pageSite, carrot_RootContent rc)
{
rc.Root_ContentID = this.Root_ContentID;
rc.PageActive = true;
rc.BlockIndex = false;
rc.ShowInSiteMap = true;
rc.SiteID = this.SiteID;
rc.ContentTypeID = ContentPageType.GetIDByType(this.ContentType);
rc.CreateDate = DateTime.UtcNow;
if (this.CreateUserId != Guid.Empty) {
rc.CreateUserId = this.CreateUserId;
} else {
rc.CreateUserId = SecurityData.CurrentUserGuid;
}
rc.GoLiveDate = pageSite.ConvertSiteTimeToUTC(this.GoLiveDate);
rc.RetireDate = pageSite.ConvertSiteTimeToUTC(this.RetireDate);
if (this.CreateDate.Year > 1950) {
rc.CreateDate = pageSite.ConvertSiteTimeToUTC(this.CreateDate);
}
}