Пример #1
0
 void CopyValidationErrors(ProcessResult results)
 {
     foreach (RuleValidationFailure failure in results.ValidationFailures)
     {
         ModelState.AddModelError(failure.PropertyName, failure.Message);
     }
 }
Пример #2
0
        public void Merge(ProcessResult processResult)
        {
            foreach (RuleValidationFailure failure in processResult.ValidationFailures)
                AddValidationFailure(failure);

            foreach (ReturnValue returnItem in processResult.ReturnItems)
            {
                AddReturnItem(returnItem);
            }
        }