Exemplo n.º 1
0
        /// <summary>
        /// Returns true if store front and client (parent record) are both active
        /// </summary>
        /// <param name="storeFront"></param>
        /// <returns></returns>
        public static bool IsActiveBubble(this PageSection pageSection)
        {
            if (pageSection == null)
            {
                throw new ArgumentNullException("pageSection");
            }

            if (pageSection.PageSectionId == default(int))
            {
                return(false);
            }
            return(pageSection.IsActiveDirect() && pageSection.Page.IsActiveBubble() &&
                   pageSection.PageTemplateSection.IsActiveDirect() &&
                   pageSection.StoreFront.IsActiveBubble());
        }