def METHOD_NAME(params: ManageEntityParameters):
    validate_view_playlist_tx(params)
    playlist_seen = PlaylistSeen(
        is_current=True,
        user_id=params.user_id,
        playlist_id=params.entity_id,
        seen_at=params.block_datetime,
        txhash=params.txhash,
        blockhash=params.event_blockhash,
        blocknumber=params.block_number,
    )
    key = (params.user_id, params.entity_id)
    params.add_playlist_seen_record(key, playlist_seen)