Example #1
0
        public List <int> GetParametersIdsForConditions()
        {
            ParameterToRuleDb PTRDb         = new ParameterToRuleDb();
            List <int>        parametersIds = PTRDb.GetConditionParametersIdsByRuleId(id);

            PTRDb.Close();
            return(parametersIds);
        }
Example #2
0
        public List <int> GetRulesIds(string value)
        {
            var        PTRDb    = new ParameterToRuleDb();
            List <int> rulesIds = PTRDb.GetRulesIdsByParam(id, value);

            PTRDb.Close();
            return(rulesIds);
        }
Example #3
0
        public static List <OnDecisionsRuleEntity> GetForParameterWithValue(int parameter, string value)
        {
            ParameterToRuleDb            PTRDb        = new ParameterToRuleDb();
            List <OnDecisionsRuleEntity> rulesObjects = PTRDb.GetEntitiesByParameterIdAndValue(parameter, value);

            PTRDb.Close();
            return(rulesObjects);
        }