Beispiel #1
0
        public async Task <IActionResult> MakeInternal(MakeInternalPaymentTransactionVM makeInternalPaymentTransaction)
        {
            try
            {
                await _paymentTransactionService.MakeInternalTransferPaymentTransaction(makeInternalPaymentTransaction.UniqueMasterCitizenNumber,
                                                                                        makeInternalPaymentTransaction.Password, makeInternalPaymentTransaction.ToUniqueMasterCitizenNumber, makeInternalPaymentTransaction.Amount);

                return(RedirectToAction(nameof(MyPaymentTransactions),
                                        new { password = makeInternalPaymentTransaction.Password, uniqueMasterCitizenNumber = makeInternalPaymentTransaction.UniqueMasterCitizenNumber }));
            }
            catch (Exception e)
            {
                ViewData["Error"] = e.Message;
                return(View(makeInternalPaymentTransaction));
            }
        }