public ActionResult ShelfCreate(CMD_SHELF shelf) { bool bResult = ShelfService.Add(shelf); string msg = bResult ? "新增成功" : "新增失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet); }
//编辑货架表 // GET: /Shelf/Edit/ public ActionResult Edit(CMD_SHELF shelf) { bool bResult = ShelfService.Save(shelf); string msg = bResult ? "修改成功" : "修改失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet); }