Пример #1
0
        /// <summary>
        /// Adds content to the modal.
        /// </summary>
        /// <param name="modalBase">The modal instance that this method extends.</param>
        /// <param name="content">The value of the content.</param>
        /// <returns>Current component.</returns>
        public static ModalBase Body(this ModalBase modalBase, Func <object, HelperResult> content)
        {
            modalBase.AddChild(content);

            return(modalBase);
        }
Пример #2
0
        /// <summary>
        /// Adds content to the modal.
        /// </summary>
        /// <param name="modalBase">The modal instance that this method extends.</param>
        /// <param name="content">The value of the content.</param>
        /// <returns>Current component.</returns>
        public static ModalBase Body(this ModalBase modalBase, string content)
        {
            modalBase.AddChild(content);

            return(modalBase);
        }