Example #1
0
 public RuleFunctionBase UppdateFunction(RuleFunctionId ruleFunctionId, string name, string content)
 {
     using (var scope = new TransactionScope())
     {
         RuleFunctionBase function = ruleService.UpdateRuleFunction(ruleFunctionId, name, content);
         scope.Complete();
         return(function);
     }
 }
Example #2
0
 public virtual void AssignRuleFunction(RuleFunctionBase ruleFunction)
 {
     ruleFunctions.Add(ruleFunction.Id);
 }
Example #3
0
 public virtual void RemoveRuleFunction(RuleFunctionBase ruleFunction)
 {
     ruleFunctions.Remove(ruleFunction.Id);
 }
Example #4
0
        public FunctionDTO GetFunctionById(long id)
        {
            RuleFunctionBase function = ruleService.GetById(new RuleFunctionId(id));

            return(functionMapper.MapToModel(function));
        }