Exemple #1
0
        public void SysMenuUpdate(T_SYS_ENTITYMENU obj)
        {
            using (SysEntityMenuBLL bll = new SysEntityMenuBLL())
            {
                string keyString = "GetSysMenuByID" + obj.ENTITYMENUID;
                string keyStringLookUp = "GetSysMenuByTypeToLookUp" + obj.SYSTEMTYPE;

                if (WCFCache.Current[keyString] != null)
                {
                    WCFCache.Current[keyString] = null;
                }
                if (WCFCache.Current[keyStringLookUp] != null)
                {
                    WCFCache.Current[keyStringLookUp] = null;
                }
                                
                bll.SysMenuUpdate(obj);
            }
        }
Exemple #2
0
        public string SysMenuAdd(T_SYS_ENTITYMENU obj)
        {
            using (SysEntityMenuBLL bll = new SysEntityMenuBLL())
            {
                if (obj != null)
                {
                    string keyString = "GetSysMenuByType" + obj.SYSTEMTYPE;
                    string keyStringLookUp = "GetSysMenuByTypeToLookUp" + obj.SYSTEMTYPE;

                    if (WCFCache.Current[keyString] != null)
                    {
                        WCFCache.Current[keyString] = null;
                    }
                    if (WCFCache.Current[keyStringLookUp] != null)
                    {
                        WCFCache.Current[keyStringLookUp] = null;
                    }
                }
                return bll.SysMenuAdd(obj);
            }
        }