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