/// <summary>
        /// The template id.
        /// </summary>
        /// <param name="display">
        /// The display.
        /// </param>
        /// <param name="cultureName">
        /// The culture name.
        /// </param>
        /// <returns>
        /// The <see cref="int"/>.
        /// </returns>
        internal static int TemplateId(this ProductDisplayBase display, string cultureName)
        {
            if (!display.DetachedContents.Any())
            {
                return(0);
            }

            var dc = display.DetachedContentForCulture(cultureName);

            return(dc == null ? 0 : dc.TemplateId);
        }
        /// <summary>
        /// The slug.
        /// </summary>
        /// <param name="display">
        /// The display.
        /// </param>
        /// <param name="cultureName">
        /// The culture name.
        /// </param>
        /// <returns>
        /// The <see cref="string"/>.
        /// </returns>
        internal static string Slug(this ProductDisplayBase display, string cultureName)
        {
            var defaultSlug = display.GetDefaultSlug();

            if (!display.DetachedContents.Any())
            {
                return(defaultSlug);
            }

            var dc = display.DetachedContentForCulture(cultureName);

            return(dc.Slug.IsNullOrWhiteSpace() ? defaultSlug : dc.Slug);
        }