public ActionResult CancelPayment() { if (CurrentUser.Payment != null) { //gate.CancelSubscription(CurrentUser.Payment.PaymentId); payment.PaymentId = CurrentUser.Payment.PaymentId; payment.CancelPayment(CurrentUser.Email); UnitOfWork.PaymentRepository.Delete(CurrentUser.Id); UnitOfWork.Commit(); } return(RedirectToAction <AuthorizeNetController>(c => c.Payment())); }