public bool UpdateModule(Module module) { bool result = dal.UpdateModule(module); if (result) { WeakRefCache.RebuiltModule(); } return(result); }
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); }