コード例 #1
0
        public void RemoveFriend(int id)
        {
            var sessionUser = _userService.GetSessionUser();
            var targetUser  = _userService.GetUserById(id);

            var friendConnection = _networkRepository.GetFriendConnectionForUsers(sessionUser.Id, targetUser.Id);

            _networkRepository.RemoveFriendConnection(friendConnection);
        }