예제 #1
0
        /// <summary>
        /// 字典项中职级的列表
        /// </summary>
        /// <returns></returns>
        public IEnumerable <DictitemEntity> GetList()
        {
            var cacheList = CacheFactory.Cache().GetCache <IEnumerable <DictitemEntity> >(busines.cacheKey);

            if (cacheList == null)
            {
                var data = busines.GetList();
                CacheFactory.Cache().WriteCache(data, busines.cacheKey);
                return(data);
            }
            else
            {
                return(cacheList);
            }
        }
예제 #2
0
        public ActionResult GetListJson(string queryJson)
        {
            var data = dictitembll.GetList(queryJson);

            return(ToJsonResult(data));
        }