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); } }
public virtual void AssignRuleFunction(RuleFunctionBase ruleFunction) { ruleFunctions.Add(ruleFunction.Id); }
public virtual void RemoveRuleFunction(RuleFunctionBase ruleFunction) { ruleFunctions.Remove(ruleFunction.Id); }
public FunctionDTO GetFunctionById(long id) { RuleFunctionBase function = ruleService.GetById(new RuleFunctionId(id)); return(functionMapper.MapToModel(function)); }