public IActionResult UpdInformationsheet(Informationsheet i) { int h; try { h = bll.UpdInformationsheet(i); } catch (Exception ex) { log.Error(ex.Message); throw; } return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "修改成功" : "修改失败" })); }
public IActionResult UpdInformationsheet(Informationsheet i) { int h; try { h = bll.UpdInformationsheet(i); } catch (Exception ex) { log.Error(ex.Message); throw; } return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "修改成功" : "修改失败" })); }