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

            ProductBLL productBLL = new ProductBLL();

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