Esempio n. 1
0
        public async Task <IActionResult> GetAllFriendsForUser(int userId)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            return(Ok(await _friendsService.GetAllFriendsForUser(userId)));
        }