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

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

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

                WeakRefCache.RebuiltModule();

                return(result);
            }
            return(false);
        }