Both sentences are correct.
But one emphasizes the result and one the person who did it.
We use the passive when we want to emphasize the action instead of the person who did it or when we don't know who did it.
We do this by taking the passive (Dutch: lijdend voorwerp)
and putting it at the beginning of the sentence.