Пример #1
0
 /// <summary>
 /// Initialises a new instance of the <see cref="ValidationFailedOperationResult" /> with the errors dictionary
 /// as specified in the supplied <see cref="ValidationFailures" />.
 /// </summary>
 /// <param name="errors">The validation errors.</param>
 public ValidationFailedOperationResult(ValidationFailures errors)
 {
     this.Errors = errors.AsDictionary();
 }
Пример #2
0
 /// <summary>
 /// Initialises a new instance of the <see cref="ValidationProblemDetails" /> class
 /// from an instance of <see cref="ValidationFailures" />.
 /// </summary>
 /// <param name="errors">The errors to represent.</param>
 public ValidationProblemDetails(ValidationFailures errors)
     : this()
 {
     this.Errors = errors.AsDictionary();
 }