/// <summary> /// Turns modal to a message box with the specified color. /// </summary> /// <param name="modalBase">The modal instance that this method extends.</param> /// <param name="color">The color of the modal.</param> /// <returns>Current component.</returns> public static ModalBase Message(this ModalBase modalBase, BootstrapColorBase color) { modalBase.AddCssClass("modal-message"); modalBase.AddCssClass(string.Format("{0}-{1}", modalBase.GetBaseClass(), color)); return(modalBase); }