public virtual Result Verify(ServiceRuleFunc <bool> RulesFunc , ModelStateDictionary modelState , object RuleFactory) { bool ret = true; if (RulesFunc != null) { ret = RunRules(RulesFunc, modelState, RuleFactory); } return(ret ? Result.Success() : Result.Fail(string.Empty)); }
public virtual bool RunRules(ServiceRuleFunc <bool> RulesFunc, ModelStateDictionary modelState, object RuleFactory) { return(RulesFunc.ExecRules(ModifiedEntities, modelState, RuleFactory)); }
public Result Verify(ServiceRuleFunc <bool> ServiceRuleFunc, ModelStateDictionary modelState, object RuleFactory) { throw new NotImplementedException(); }