예제 #1
0
        public bool UpdateModule(Module module)
        {
            var result = dal.UpdateModule(module);

            if (result)
            {
                WeakRefCache.RebuiltModule();
            }
            return(result);
        }
예제 #2
0
        public bool AddModule(int siteID, string name)
        {
            if (GetModule(siteID, name) == null)
            {
                //
                //todo:check siteid
                //

                var result = dal.AddModule(new Module
                {
                    SiteId   = siteID,
                    Name     = name,
                    IsSystem = false,
                    IsDelete = false
                });

                WeakRefCache.RebuiltModule();

                return(result);
            }

            return(false);
        }