Exemplo n.º 1
0
        public async Task <IActionResult> GetPaymentAmount()
        {
            Guid     customerId = Guid.Parse(User.Identity.Name);
            Customer customer   = await _customerService.GetCustomerByIdAsync(customerId);

            int paymentAmount = await _financeService.GetPaymentAmountForCustomerAsync(customer);

            return(Ok(paymentAmount));
        }