public IActionResult GetCustomers() { var customerEntities = _customerInfoRepository.GetCustomers(); if (customerEntities == null) { return(StatusCode(500, "Sorry, the database is empty!")); } return(Ok(customerEntities)); }