/// <summary> /// Provides the ability to add an error as a Notification message. /// </summary> public static NotificationCollection AddError(this NotificationCollection instance, string error) { return(instance.AddError(error, string.Empty)); }
/// <summary> /// Provides the ability to add a <see cref="System.Exception"/> as a Notification message /// </summary> public static NotificationCollection AddException(this NotificationCollection instance, Exception exception) { return(instance.AddError(exception.Message)); }