/// <summary> /// Gets the BaseVM with notification warning. /// </summary> /// <param name="warningMessage">The warning message.</param> /// <returns>The BaseVM object with warning message.</returns> public static BaseVM BaseVmWarning(string warningMessage) { var retValue = new BaseVM(); retValue.NotificationContainer.AddWarning(warningMessage); return(retValue); }
/// <summary> /// Gets the BaseVM with notification success. /// </summary> /// <param name="successMessage">The success message.</param> /// <returns>The BaseVM object with success message.</returns> public static BaseVM BaseVmSuccess(string successMessage) { var retValue = new BaseVM(); retValue.NotificationContainer.AddSuccess(successMessage); return(retValue); }
/// <summary> /// Gets the BaseVM with notification error. /// </summary> /// <param name="errorMessage">The error message.</param> /// <returns>The BaseVM object with error message.</returns> public static BaseVM BaseVmError(string errorMessage) { var retValue = new BaseVM(); retValue.NotificationContainer.AddError(errorMessage); return(retValue); }
/// <summary> /// Sets the notification error. /// </summary> /// <param name="vm">The this.</param> /// <param name="errorMessage">The error message.</param> public static void SetError(this BaseVM vm, string errorMessage) { vm.NotificationContainer.AddError(errorMessage); }
/// <summary> /// Sets the notification warning. /// </summary> /// <param name="vm">The this.</param> /// <param name="warningMessage">The warning message.</param> public static void SetWarning(this BaseVM vm, string warningMessage) { vm.NotificationContainer.AddWarning(warningMessage); }