private async void AnswerNoHelpMethod() { if (null == _answerService || Detail == null || Relationship == null) { return; } #region Checking Network if (false == Utility.Instance.IsNetworkAvailable) { ToasteIndicator.Instance.Show(String.Empty, "网络连接已中断", null, 3); return; } #endregion var answerId = Detail.Id; var result = Relationship.IsNotHelp == false ? await _answerService.NoHelpAsync(LoginUser.Current.Token, answerId) : await _answerService.UndoNoHelpAsync(LoginUser.Current.Token, answerId, LoginUser.Current.Profile.Id); if (null != result.Error) { ToasteIndicator.Instance.Show(String.Empty, result.Error.Message, null, 3); Debug.WriteLine(Regex.Unescape(result.Error.Message)); return; } Relationship.IsNotHelp = result.Result.IsNotHelp; }