Exemplo n.º 1
0
        /// <summary>
        /// 获取没带子渠道的渠道列表(全部产品)
        /// </summary>
        /// <returns></returns>
        public Dictionary <int, List <Channel> > GetAvailableChannelsWithoutSubChannels()
        {
            string cacheKey = string.Format("net91com.Reports.UserRights.URLoginService.GetAvailableChannelsWithoutSubChannels_{0}", LoginUser.ID);

            if (CacheHelper.Contains(cacheKey))
            {
                return(CacheHelper.Get <Dictionary <int, List <Channel> > >(cacheKey));
            }
            Dictionary <int, List <Channel> > channels = DAChannelsHelper.GetChannelsWithoutSubChannels(LoginUser.ID);

            CacheHelper.Set <Dictionary <int, List <Channel> > >(cacheKey, channels, CacheTimeOption.TenMinutes, CacheExpirationOption.AbsoluteExpiration);
            return(channels);
        }