public ActionResult UpDateGetingeProductName(int productId, string productName) { Getinge_Product model = (from a in db.Getinge_Product where a.product_id == productId select a).FirstOrDefault(); if (model != null) { model.product_name = productName; db.SaveChanges(); return(Json(new { code = 1, msg = "更新成功" }, JsonRequestBehavior.DenyGet)); } else { return(Json(new { code = 0, msg = "不存在" }, JsonRequestBehavior.DenyGet)); } }
public ActionResult ProductAct(int productId) { if (productId == 1) { ViewBag.Title = "ACT重症和心血管系统"; } else if (productId == 2) { ViewBag.Title = "SW外科系统"; } else { ViewBag.Title = "IC感染控制"; } Getinge_Product model = (from a in db.Getinge_Product where a.product_id == productId select a).FirstOrDefault(); ViewBag.Model = model; List <GetingeProductPrants> list = bll.GetGetingeProductChildrenList(productId); return(View(list)); }