Ejemplo n.º 1
0
 public ActionResult Edit(ProductWarning productWarning)
 {
     bool bResult = ProductWarningService.Save(productWarning);
     string msg = bResult ? "修改成功" : "修改失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 2
0
 public ActionResult Create(ProductWarning productWarning)
 {
     bool bResult = ProductWarningService.Add(productWarning);
     string msg = bResult ? "新增成功" : "新增失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet);
 }