Carrotware.CMS.Core.ContentPage.PerformCommonSaveRoot C# (CSharp) Метод

PerformCommonSaveRoot() приватный Метод

private PerformCommonSaveRoot ( SiteData pageSite, carrot_RootContent rc ) : void
pageSite SiteData
rc carrot_RootContent
Результат void
        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);
            }
        }