Пример #1
0
        public List<T_SYS_ENTITYMENU> GetSysMenuInfosListByParentID(string parentID)
        {
            using (SysEntityMenuBLL bll = new SysEntityMenuBLL())
            {
                #region 
                List<T_SYS_ENTITYMENU> menu;
                string keyString = "GetSysMenuInfosListByParentID" + parentID;
                if (WCFCache.Current[keyString] == null)
                {

                    menu = bll.GetSysMenuInfosByParentID(parentID);
                    WCFCache.Current.Insert(keyString, menu, DateTime.Now.AddMinutes(15));

                }
                else
                {
                    menu = (List<T_SYS_ENTITYMENU>)WCFCache.Current[keyString];
                }
                return menu;
                #endregion
            }
        }