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