public IHttpActionResult edit(zxjc_t_dzgy entity) { try { DZGYService dzgys = new DZGYService(); int cnt = dzgys.Modify(entity); if (cnt > 0) { return(Json(new { code = 1, msg = "数据修改成功" })); } else { return(Json(new { code = 0, msg = "数据修改失败" })); } } catch (Exception) { throw; } }
public IHttpActionResult BatEdit(List <zxjc_t_dzgy> entitys) { try { DZGYService dzgys = new DZGYService(); int ret = dzgys.Modify(entitys); if (ret > 0) { return(Json(new { code = 1, msg = "数据修改成功" })); } else { return(Json(new { code = 0, msg = "数据修改失败" })); } } catch (Exception) { throw; } }