public ActionResult Edit(CMD_UNIT Unit) { bool bResult = UnitService.Save(Unit); string msg = bResult ? "修改成功" : "修改失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text/html", JsonRequestBehavior.AllowGet); }
public ActionResult Create(CMD_UNIT Unit) { bool bResult = UnitService.Add(Unit); string msg = bResult ? "新增成功" : "新增失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text/html", JsonRequestBehavior.AllowGet); }