/// <summary> /// Delete the debt holder proper. /// </summary> protected override void DeleteDebtClass() { TradingSupportClient client = new TradingSupportClient(Guardian.Properties.Settings.Default.TradingSupportEndpoint); base.DeleteDebtClass(); MethodResponseErrorCode response = client.DeleteDebtNegotiator(new TradingSupportReference.DebtNegotiator[] { new TradingSupportReference.DebtNegotiator { RowId = this.EntityId, RowVersion = this.RowVersion } }); if (!response.IsSuccessful) { if (response.Errors.Length > 0) { Entity.ThrowErrorInfo(response.Errors[0]); } else { Entity.ThrowErrorInfo(response.Result); } } client.Close(); }