internal static HeaderDataObject DataItem(IHeader that) { var defaultDataItem = new HeaderDataObject(that.HasVortoValue(DataItemProperty) ? that.GetVortoValue <IPublishedContent>(DataItemProperty) : that.GetVortoValue <IPublishedContent>(DataItemProperty, fallbackCultureName: "en-US")); return(defaultDataItem); }
private static HeaderDataObject CachedData(IHeader that) { return(that.HeaderDataObject = that.HeaderDataObject == null?HeaderDataObject.DataItem(that) : that.HeaderDataObject); }