public async Task <IActionResult> GetTrendingRepos() { var repositories = await _githubService.GetTrendingRepos(); if (repositories == null) { return(BadRequest()); } return(Ok(repositories)); }