示例#1
0
        public async Task <IActionResult> GetUserByUserName(string userName)
        {
            var user = await _githubService.GetUserByUserNameAsync(userName);

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