Esempio n. 1
0
        public static BusinessResult ErrorResult(IEnumerable <BusinessError> businessRules)
        {
            var result = new BusinessResult();

            result.AddBrokenRule(businessRules);

            return(result);
        }
Esempio n. 2
0
        public static BusinessResult SingleErrorResult(BusinessError businessRule)
        {
            var result = new BusinessResult();

            result.AddBrokenRule(businessRule);

            return(result);
        }