public ActionResult PubErr(FormCollection fc, int id = 0) { Response _resp = new Response(); //判断是否填写否决原因 UnPubReason _unpubreason = new UnPubReason(); if (!TryUpdateModel(_unpubreason, new string[] { "UnPUbReason" })) { _resp.Status = 0; _resp.Message = General.GetModelErrorString(ModelState); _resp.Data = null; return(Json(_resp)); } _resp = _productmanager.PubErr(_unpubreason, id); if (_resp.Status == 1) { //否决日志 _productLogManager.AddUnPublicLog(Session["username"].ToString(), "否决保险产品" + id.ToString() + "; 使用的ip" + Request.UserHostAddress.ToString(), Request.Url.ToString()); _resp.Message = "恭喜!保险合同上架否决成功!"; } return(Json(_resp)); }