Exemplo n.º 1
0
        public IActionResult DeactivatePaymentMethod(int paymentId)
        {
            var paymentToDelete = _repository.DeactivatePaymentMethod(paymentId);

            if (paymentToDelete == 0)
            {
                return(NotFound("There is no payment method matching this query."));
            }
            return(Ok("The payment has been deleted"));
        }