private static Severity GetSeverity(FluentValidation.Severity severity) { switch (severity) { case FluentValidation.Severity.Error: return(Severity.Error); case FluentValidation.Severity.Warning: return(Severity.Warning); case FluentValidation.Severity.Info: return(Severity.Info); default: return(Severity.Error); } }
private string GetSeverityName(FluentValidation.Severity severity) { switch (severity) { case FluentValidation.Severity.Error: return("Fehler"); case FluentValidation.Severity.Warning: return("Warnung"); case FluentValidation.Severity.Info: return("Information"); default: return(severity.ToString()); } }