public async Task <SigningUrlResponse> GetAgreementSigningUrl([FromQuery] string agreementId) { await this.RefreshTokenAsync().ConfigureAwait(true); var response = client.GetAgreementSigningUrl(agreementId).Result; return(response); //client.CreateAgreement(); }
private SigningUrlResponse GetSigningUrl(int?creditDataId, string agreementId) { SigningUrlResponse response; try { //this.RefreshToken(creditDataId); response = client.GetAgreementSigningUrl(creditDataId, agreementId).Result; repository.AddAdobeSignLog(creditDataId, "GetAgreementSigningUrl", $"agreementId={agreementId}", response); } catch (Exception e) { Console.WriteLine(e); repository.AddAdobeSignLog(creditDataId, "GetAgreementSigningUrl", $"agreementId={agreementId}", e); throw; } //response.signingUrlSetInfos = null; return(response); }