public async Task <IActionResult> GetNewStoryIds() { List <string> storyIds; try { storyIds = await _service.GetAllIdsAsync().ConfigureAwait(false); } catch (Exception ex) { _logger.LogError("There was an error: " + ex.Message); return(StatusCode(500, "Internal server error"));; } return(Ok(storyIds)); }