Beispiel #1
0
        public List <SubscriptTypeEntity> GetActiveSubscriptTypeList()
        {
            _commonDataAccess = new CommonDataAccess(_context);
            var lst = _commonDataAccess.GetActiveSubscriptType();

            return(lst);
        }
Beispiel #2
0
        public IDictionary <string, string> GetSubscriptTypeSelectList()
        {
            _commonDataAccess = new CommonDataAccess(_context);
            var lst = _commonDataAccess.GetActiveSubscriptType();

            return((from x in lst
                    select new
            {
                key = x.SubscriptTypeId.ToString(),
                value = x.SubscriptTypeName
            }).ToDictionary(t => t.key, t => t.value));
        }