Beispiel #1
0
        public OperationResult CancelFriendRequest(long friendshipId)
        {
            if (!friendshipRepository.FriendshipExists(friendshipId))
            {
                return(OperationResult.Failed($"FriendRequest with ID = {friendshipId} does not exist"));
            }

            friendshipRepository.Delete(friendshipId);

            return(OperationResult.Success());
        }