Exemplo n.º 1
0
 //编辑库区表
 // GET: /Area/Edit/
 public ActionResult Edit(Area area)
 {
     bool bResult = AreaService.Save(area);
     string msg = bResult ? "修改成功" : "修改失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 2
0
 public ActionResult AreaCreate(Area area)
 {
     bool bResult = AreaService.Add(area);
     string msg = bResult ? "新增成功" : "新增失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet);
 }