Esempio n. 1
0
        public async Task <IActionResult> GetPaymentMethodAsync(int id)
        {
            var paymentMethod = await _paymentService.GetPaymentMethodAsync(id);

            if (paymentMethod == null)
            {
                return(NotFound());
            }

            return(Ok(paymentMethod));
        }
 public async Task <PaymentMethod> GetById(int id)
 {
     _logger.LogInformation($"Received request for payment method with ID {id}");
     return(await _service.GetPaymentMethodAsync(id));
 }