//GetHomePageBuzzList public List <HotNew> GetHomePageBuzzList(bool isonlyhtml) { var dco = new DataCacheObject(DataCacheType.REFERENCE, DataCacheRegions.HOTNEWS, "GETHOMEPAGEBUZZLIST", new object[] { isonlyhtml }, CachingExpirationTime.Minutes_10); var result = _cacheRepository.Get(dco) as List <HotNew>; if (result != null && result.Any()) { return(result); } result = _dataContext.spHotNews_Buzz(isonlyhtml).ToList(); if (result.Any()) { dco.Data = result; _cacheRepository.Add(dco); } return(result); }