public bool IsUserAuthorizedForFriend(ClaimsPrincipal currentUser, int friendId, IFriendRepository friendRepository)
        {
            var currentUserId = currentUser.Claims.FirstOrDefault(x => x.Type == "sub").Value;

            return friendRepository.IsUserAFriend(int.Parse(currentUserId), friendId);
        }