/// <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); }
/// <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); }