Beispiel #1
0
        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));
        }
Beispiel #2
0
 public virtual bool RunRules(ServiceRuleFunc <bool> RulesFunc, ModelStateDictionary modelState, object RuleFactory)
 {
     return(RulesFunc.ExecRules(ModifiedEntities, modelState, RuleFactory));
 }
Beispiel #3
0
 public Result Verify(ServiceRuleFunc <bool> ServiceRuleFunc, ModelStateDictionary modelState, object RuleFactory)
 {
     throw new NotImplementedException();
 }