Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.Messages/DefaultOperationMessageLevelClassMapper.cs
/// <summary>
///     Convert <see cref="OperationMessageLevel" /> to class names used for alert dialog.
/// </summary>
/// <param name="value">The value to converting.</param>
/// <returns>Converted class name.</returns>
Convert  to class names used for alert dialog.
Convert to class names used for alert dialog .
private static string MapLevelForAlert(OperationMessageLevel value)
		{
			switch (value)
			{
				case OperationMessageLevel.Critical:
				case OperationMessageLevel.Error:
					return "alert-danger";
				case OperationMessageLevel.Info:
					return "alert-info";
				case OperationMessageLevel.Success:
					return "alert-success";
				case OperationMessageLevel.Verbose:
					return "alert-muted";
				case OperationMessageLevel.Warning:
					return "alert-warning";
				default:
					return "";
			}
		}
private static string MapLevelForAlert ( OperationMessageLevel value ) { switch ( value ) { case OperationMessageLevel . Critical : case OperationMessageLevel . Error : return " " ; case OperationMessageLevel . Info : return " " ; case OperationMessageLevel . Success : return " " ; case OperationMessageLevel . Verbose : return " " ; case OperationMessageLevel . Warning : return " " ; default : return " " ; } }
Convert  to class names used for alert dialog.
Convert to class names used for alert dialog .
Converted class name.
Converted class name .
value
OperationMessageLevel
The value to converting.
The value to converting .