public async Task <IActionResult> CreatePaymentMethod(PaymentMethod paymentMethod) { try { var response = await _service.CreateNewPaymentMethod(paymentMethod); if (response != null) { return(Ok(response)); } return(StatusCode(StatusCodes.Status204NoContent)); } catch (Exception ex) { throw ex; } }