コード例 #1
0
        public ActionResult DeleteModel()
        {
            if (!AppData.IsManagerLogin)
            {
                return(Json(new { success = false, msg = "您未登录后台或会话已过期" }));
            }
            if (PrivilegeBLL.HasNotPrivilege(AppData.SessionUserID, 4))
            {
                return(Json(new { success = false, msg = "您没有执行该操作的权限" }));
            }

            Validation vld     = new Validation();
            int        modelId = vld.GetInt("modelId");

            ProductBLL productBLL = new ProductBLL();

            productBLL.DeleteModel(modelId);
            return(Json(new { success = true }));
        }