Exemplo n.º 1
0
        public async Task <IActionResult> FollowUser(string userName)
        {
            int userId = int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value);

            var result = await _gitHubService.FollowStudent(userId, userName);

            return(this.CreateResult(result));
        }