public ActionResult AddPaymentType(CreatePaymentTypeRequest createRequest) { var newPaymentType = _paymentTypeRepository.AddNewPaymentType( createRequest.Name, createRequest.AccountNumber, createRequest.UserId, createRequest.IsActive); return(Created($"/api/paymenttype/{newPaymentType.Id}", newPaymentType)); }