public async Task <HttpResponseMessage> PostPaymentAsync(PostPaymentRequest request)
        {
            var token = await IdentityServerHelper.GetRothschildHouseTokenAsync();

            client.SetBearerToken(token.AccessToken);

            return(await client.PostAsync(apiUrl.Controller("Transaction").Action("Payment").ToString(), request.GetStringContent()));
        }
        public async Task <HttpResponseMessage> PostPaymentAsync(TokenResponse token, PostPaymentRequest request)
        {
            using (var client = new HttpClient())
            {
                client.SetBearerToken(token.AccessToken);

                return(await client.PostAsync(
                           apiUrl.Controller("Transaction").Action("Payment").ToString(),
                           request.GetStringContent()
                           ));
            }
        }