Example #1
0
        public static BusinessResult ErrorResult(IEnumerable <BusinessError> businessRules)
        {
            var result = new BusinessResult();

            result.AddBrokenRule(businessRules);

            return(result);
        }
Example #2
0
        public static BusinessResult SingleErrorResult(BusinessError businessRule)
        {
            var result = new BusinessResult();

            result.AddBrokenRule(businessRule);

            return(result);
        }