public IActionResult GetById(int id) { var paymentType = _repo.GetByPaymentTypeId(id); if (paymentType == null) { return(NotFound("No Payment Type with that Id was found")); } return(Ok(paymentType)); }