public ActionResult <InsuranceCustomer> GetCustomerById(int id) { _logger.LogInformation($"GetCustomerById was called with Id: {id}"); var customer = _repo.GetCustomerById(id); if (customer == null) { return(NotFound()); } else { return(Ok(customer)); } }