public ActionResult <IEnumerable <SpeciesModel> > ReadAll() { try { return(Ok(_repository.ReadAll())); } catch (Exception ex) { _logger.LogError($"Error: controller exception on ReadAll()"); return(StatusCode((int)HttpStatusCode.InternalServerError, $"Error: {ex.Message}")); } }