Exemple #1
0
 public RuleFunctionBase AddFunction(string name, string content, PolicyId policyId)
 {
     using (var scope = new TransactionScope())
     {
         var policy       = policyRep.GetRuleBasePolicyById(policyId);
         var ruleFunction = ruleService.AddRuleFunction(name, content);
         policy.AssignRuleFunction(ruleFunction);
         scope.Complete();
         return(ruleFunction);
     }
 }