Ejemplo n.º 1
0
        public IActionResult GetUserPayTypes(PaymentTypes paymentToAdd)
        {
            var newPaymentType = _repository.AddPaymentType(paymentToAdd);

            if (newPaymentType == null)
            {
                return(BadRequest("Your payment type could not be added at this time."));
            }
            return(Created("", newPaymentType));
        }