Exemple #1
0
        public static BusinessResult SingleErrorResult(BusinessError businessRule)
        {
            var result = new BusinessResult();

            result.AddBrokenRule(businessRule);

            return(result);
        }
Exemple #2
0
 public void AddBrokenRule(BusinessError brokenRule) => BrokenRules.Add(brokenRule);