コード例 #1
0
        public ActionResult AddNewPaymentType(CreatePaymentTypeRequest newPaymentObject)
        {
            var newPaymentType = _paymentRepository.AddPayment(newPaymentObject);

            return(Created($"api/payments/{newPaymentType.PaymentTypeId}", newPaymentType));
        }