public List <int> GetParametersIdsForConditions() { ParameterToRuleDb PTRDb = new ParameterToRuleDb(); List <int> parametersIds = PTRDb.GetConditionParametersIdsByRuleId(id); PTRDb.Close(); return(parametersIds); }
public List <int> GetRulesIds(string value) { var PTRDb = new ParameterToRuleDb(); List <int> rulesIds = PTRDb.GetRulesIdsByParam(id, value); PTRDb.Close(); return(rulesIds); }
public static List <OnDecisionsRuleEntity> GetForParameterWithValue(int parameter, string value) { ParameterToRuleDb PTRDb = new ParameterToRuleDb(); List <OnDecisionsRuleEntity> rulesObjects = PTRDb.GetEntitiesByParameterIdAndValue(parameter, value); PTRDb.Close(); return(rulesObjects); }