コード例 #1
0
        public async Task <IActionResult> GetUserByUserName(string userName)
        {
            var user = await githubService.GetUserByUserName(userName);

            return(user != null ? (IActionResult)Ok(user) : NotFound());
        }