示例#1
0
        public static ApiValidationResult Aggregate(params ApiValidationResult[] results)
        {
            if (results == null)
            {
                return(Ok());
            }

            var result = new ApiValidationResult();

            results.SafeForEach(r => result.Append(r));

            return(result);
        }
示例#2
0
        public static ApiValidationResult Aggregate(params ApiValidationError[] errors)
        {
            if (errors == null)
            {
                return(Ok());
            }

            var result = new ApiValidationResult();

            errors.ForEach(e => result.Append(e));

            return(result);
        }