/// <summary> /// Set the message text as informational /// </summary> public ViewModelBase WithInformationalMessage(string text) { this.Message = new MessageModel { Text = text, Classifier = MessageClassifier.Information }; return this; }
/// <summary> /// Set an error message /// </summary> public ViewModelBase WithErrorMessage(string text) { this.Message = new MessageModel { Text = text, Classifier = MessageClassifier.Error }; return this; }
/// <summary> /// Set a message /// </summary> public ViewModelBase WithMessage(MessageModel message) { this.Message = message; return this; }
/// <summary> /// Set an exclamation message /// </summary> public ViewModelBase WithWarningMessage(string text) { this.Message = new MessageModel { Text = text, Classifier = MessageClassifier.Exclamation }; return this; }