示例#1
0
 /// <summary>
 /// Pushes the user message.
 /// </summary>
 /// <param name="messageType">Type of the message.</param>
 /// <param name="message">The message.</param>
 public void PushUserMessage(FlashMessage.MessageType messageType, string message)
 {
     var flashMessage = new FlashMessage(messageType, message);
     PushUserMessage(flashMessage);
 }
示例#2
0
 private void PushUserMessage(FlashMessage message)
 {
     ensureFlashMessagesInitialized();
     Stack<FlashMessage> flash = getFlash();
     flash.Push(message);
 }