private Dictionary <decimal, string> RuleTypeList; // = new Dictionary<int, string>(); public BRuleTemp() { _ruleRep = new EntityRepository <RuleTemplate>(); bRuleType = new BRuleType(); RuleTypeList = new Dictionary <decimal, string>(); foreach (var ruleType in bRuleType.GetAll()) { RuleTypeList.Add(ruleType.ID, ruleType.Name); } }
public IList <RuleType> GetAllRuleTypes() { BRuleType businessRuleType = new BRuleType(); return(businessRuleType.GetAll()); }