public ActionResult Publiced(FormCollection fc, ICollection <Bxar> bxar, int productid = 0) { Response _resp = new Response(); List <Bxar> _bxars = new List <Bxar>(); if (!TryUpdateModel(_bxars, fc)) { _resp.Status = 0; _resp.Message = General.GetModelErrorString(ModelState); _resp.Data = null; return(Json(_resp)); } Product _product = _productmanager.Find(productid); if (_product == null) { _resp.Status = 0; _resp.Message = "不存在该ID的保险合同"; return(Json(_resp)); } _resp = _productmanager.Publiced(_bxars, productid); if (_resp.Status == 1) { //上架日志 _productLogManager.AddPublicedLog(Session["username"].ToString(), "上架保险产品" + productid.ToString() + "; 使用的ip" + Request.UserHostAddress.ToString(), Request.Url.ToString()); } return(Json(_resp)); }