示例#1
0
        public async Task <IActionResult> GetTrendingRepos()
        {
            var repositories = await _githubService.GetTrendingRepos();

            if (repositories == null)
            {
                return(BadRequest());
            }
            return(Ok(repositories));
        }