Пример #1
0
        public IEnumerable <PMR025UnitEntity> GetPMR025UnitList()
        {
            var cacheList = CacheFactory.Cache().GetCache <IEnumerable <PMR025UnitEntity> >(busines.pmr025CacheKey);

            if (cacheList == null)
            {
                var data = busines.GetPMR025UnitList();
                CacheFactory.Cache().WriteCache(data, busines.pmr025CacheKey);
                return(data);
            }
            else
            {
                return(cacheList);
            }
        }