Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 public virtual void AssignRuleFunction(RuleFunctionBase ruleFunction)
 {
     ruleFunctions.Add(ruleFunction.Id);
 }
Ejemplo n.º 3
0
 public virtual void RemoveRuleFunction(RuleFunctionBase ruleFunction)
 {
     ruleFunctions.Remove(ruleFunction.Id);
 }
Ejemplo n.º 4
0
        public FunctionDTO GetFunctionById(long id)
        {
            RuleFunctionBase function = ruleService.GetById(new RuleFunctionId(id));

            return(functionMapper.MapToModel(function));
        }