示例#1
0
        public async Task <IActionResult> UpdatePaymentMethodAsync(string paymentMethodId, [FromBody] UpdateStripePaymentMethodRequest request)
        {
            var paymentMethod = await _stripePaymentMethodService.UpdatePaymentMethodAsync(paymentMethodId, request.ExpMonth, request.ExpYear);

            return(this.Ok(_mapper.Map <StripePaymentMethodDto>(paymentMethod)));
        }
 private async Task <HttpResponseMessage> ExecuteAsync(string paymentMethodId, UpdateStripePaymentMethodRequest request)
 {
     return(await _httpClient.PutAsJsonAsync($"api/stripe/payment-methods/{paymentMethodId}", request));
 }