public ActionResult AddNewPaymentType(CreatePaymentTypeRequest newPaymentObject) { var newPaymentType = _paymentRepository.AddPayment(newPaymentObject); return(Created($"api/payments/{newPaymentType.PaymentTypeId}", newPaymentType)); }