コード例 #1
0
        public async Task <ActionResult> GetAccountBalanceAsync(string accountNumber)
        {
            var pinHash = HttpContext.Request.Headers["Authorization"];
            await _authorizationService.AuthorizeForAtmActionsAsync(accountNumber, pinHash);

            var balanceModel = await _accountService.GetAccountBalanceAsync(accountNumber);

            return(Ok(balanceModel));
        }
コード例 #2
0
        public async Task <ActionResult> MakeMobileCarrierPaymentAsync(MobileCarrierPaymentRequestModel model)
        {
            var pinHash = HttpContext.Request.Headers["Authorization"];
            await _authorizationService.AuthorizeForAtmActionsAsync(model.AccountNumber, pinHash);

            var cheque = await _paymentService.MakeMobileCarrierPaymentAsync(model);

            return(Ok(cheque));
        }