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)); }
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)); }