Method AsErrors
| Improve this Doc View SourceAsErrors(ValidationResult)
Converts the validation result to a collection of error messages.
Declaration
public static IEnumerable<string> AsErrors(this ValidationResult result)
Parameters
Type | Name | Description |
---|---|---|
FluentValidation.Results.ValidationResult | result | The result of running a validator. |
Returns
Type | Description |
---|---|
IEnumerable<String> | A collection that contains error messages. |