public ActionResult ForbidPub(int id = 0) { Response _resp = new Response(); _resp = _productmanager.Forbid(id); if (_resp.Status == 1) { //禁用日志 _productLogManager.AddPublicedLog(Session["username"].ToString(), "禁用保险产品" + id.ToString() + "; 使用的ip" + Request.UserHostAddress.ToString(), Request.Url.ToString()); _resp.Message = "恭喜,保险合同禁用成功"; } return(Json(_resp)); }