public ServiceResult ReturnValidationErrors(ValidationErrorException validationErrorException) { var result = new T(); result.Error = validationErrorException; result.SetValidationErrors(validationErrorException.ValidationResults); return(ReturnResult(result)); }
public ServiceResult(ValidationErrorException error) { this.ValidationResults = error.ValidationResults ?? Enumerable.Empty <ValidationResult>(); this.Error = error; HasError = true; }
public ServiceListResult(ValidationErrorException error) : base(error) { }