public static bool CancelReserveDoctor(int id) { string url = RestClientUtil.GetSpliceUrl("/api/UserReserveRecord/Delete", new Dictionary <string, string> { { "id", id.ToString() } }); bool res = ParseResponseJsonContent.ParseBool(RestClientUtil.DeleteToken(url), out string msg); if (!res) { Device.BeginInvokeOnMainThread(() => DependencyService.Get <IToast>().ShortAlert(msg)); } else { Device.BeginInvokeOnMainThread(() => DependencyService.Get <IToast>().ShortAlert("取消预约成功!")); } return(res); }