예제 #1
0
        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);
            }
        }
예제 #2
0
        public IList <RuleType> GetAllRuleTypes()
        {
            BRuleType businessRuleType = new BRuleType();

            return(businessRuleType.GetAll());
        }