public ActionResult Create(InBillMaster inBillMaster) { string strResult = string.Empty; bool bResult = InBillMasterService.Add(inBillMaster, this.User.Identity.Name.ToString(), out strResult); string msg = bResult ? "新增成功" : "新增失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet); }
public ActionResult Edit(InBillMaster inBillMaster) { string strResult = string.Empty; bool bResult = InBillMasterService.Save(inBillMaster, out strResult); string msg = bResult ? "修改成功" : "修改失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet); }