public void RegisterCard() { ShowLoadingSpinner(true); PaymentViewModel cardPayment = new PaymentViewModel(); CardViewModel card; UiUtils.GatherCardDetails(cardEntryView, avsEntryView, startDateEntryView, out card); cardPayment.Card = card; cardPayment.Currency = judoCurrency; cardPayment.JudoID = judoId; cardPayment.Amount = judoAmount; cardPayment.PaymentReference = judoPaymentRef; cardPayment.ConsumerReference = judoConsumer.YourConsumerReference; _paymentService.RegisterCard(cardPayment, clientService).ContinueWith(HandleServerResponse, TaskScheduler.FromCurrentSynchronizationContext()); }