Esempio n. 1
0
        public ActionResult HomePageModuleDelete(int id)
        {
            SE_HomePageConfigManager manager = new SE_HomePageConfigManager();
            var model = manager.GetHomePageModuleEntity(id);

            if (manager.DeleteModule(id, (int)model.FKHomePage))
            {
                AutoReloadCache();
                LoggerManager.InsertOplog(new ConfigHistory()
                {
                    ObjectID = model.ID.ToString(), AfterValue = "", Author = User.Identity.Name, BeforeValue = JsonConvert.SerializeObject(model), ObjectType = "PCMLoger", ChangeDatetime = DateTime.Now, Operation = "删除个人中心模块" + model.ModuleName
                });
                return(Json(1));
            }
            else
            {
                return(Json(0));
            }
        }