public Rule <TTarget, TComparison> AddRule <TTarget, TComparison>(RuleDto ruleDto)
        {
            if (ruleDto == null)
            {
                throw new ArgumentNullException(nameof(ruleDto));
            }

            var newRule = _ruleStore.AddRule <TTarget, TComparison>(ruleDto);

            return(GetRule <TTarget, TComparison>(newRule));
        }
Exemple #2
0
 public RuleDto AddRule <TTarget, TComparison>(RuleDto ruleDto)
 {
     return(_ruleStore.AddRule <TTarget, TComparison>(ruleDto));
 }