public EditHistory(vw_carrot_EditHistory p) { if (p != null) { SiteData site = SiteData.GetSiteFromCache(p.SiteID); this.SiteID = p.SiteID; this.ContentID = p.ContentID; this.Root_ContentID = p.Root_ContentID; this.IsLatestVersion = p.IsLatestVersion; this.TitleBar = p.TitleBar; this.NavMenuText = p.NavMenuText; this.PageHead = p.PageHead; this.EditUserId = p.EditUserId; this.EditDate = site.ConvertUTCToSiteTime(p.EditDate); this.FileName = p.FileName; this.ContentTypeID = p.ContentTypeID; this.ContentTypeValue = p.ContentTypeValue; this.PageActive = p.PageActive; this.GoLiveDate = site.ConvertUTCToSiteTime(p.GoLiveDate); this.RetireDate = site.ConvertUTCToSiteTime(p.RetireDate); this.CreateDate = site.ConvertUTCToSiteTime(p.CreateDate); this.EditUserName = p.EditUserName; this.EditEmail = p.EditEmail; this.CreateUserName = p.CreateUserName; this.CreateEmail = p.CreateEmail; } }
public EditHistory(vw_carrot_EditHistory p) { if (p != null) { SiteData site = SiteData.GetSiteFromCache(p.SiteID); this.SiteID = p.SiteID; this.ContentID = p.ContentID; this.Root_ContentID = p.Root_ContentID; this.IsLatestVersion = p.IsLatestVersion; this.TitleBar = p.TitleBar; this.NavMenuText = p.NavMenuText; this.PageHead = p.PageHead; this.EditUserId = p.EditUserId; this.EditDate = site.ConvertUTCToSiteTime(p.EditDate); this.FileName = p.FileName; this.ContentTypeID = p.ContentTypeID; this.ContentTypeValue = p.ContentTypeValue; this.PageActive = p.PageActive; this.GoLiveDate = site.ConvertUTCToSiteTime(p.GoLiveDate); this.RetireDate = site.ConvertUTCToSiteTime(p.RetireDate); this.EditUserName = p.EditUserName; this.EditEmail = p.EditEmail; this.IsLockedOut = p.IsLockedOut; this.CreateDate = site.ConvertUTCToSiteTime(p.CreateDate); this.UserCreateDate = p.UserCreateDate; this.LastLoginDate = p.LastLoginDate; this.LastPasswordChangedDate = p.LastPasswordChangedDate; this.LastLockoutDate = p.LastLockoutDate; this.CreateUserName = p.CreateUserName; this.CreateEmail = p.CreateEmail; } }