BetterCms.Module.Root.Mvc.Helpers.MessagesHelper.CustomMessagesBox C# (CSharp) Method

CustomMessagesBox() public static method

public static CustomMessagesBox ( this html, IMessagesIndicator messages, string id = null, string>.IDictionary attributes = null ) : IHtmlString
html this
messages IMessagesIndicator
id string
attributes string>.IDictionary
return IHtmlString
        public static IHtmlString CustomMessagesBox(this HtmlHelper html, IMessagesIndicator messages, string id = null,
            IDictionary<string, string> attributes = null)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                id = string.Format("bcms-custom-messages-{0}", Guid.NewGuid());
            }

            return MessagesBox(html, id, attributes, cssClassMessages + " " + cssClassCustomMessages, messages);
        }