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

            ProductBLL productBLL = new ProductBLL();

            productBLL.DeleteMessage(id);
            return(Json(new { success = true }));
        }