Use Indirektes Objekt (Dativ) when it indicates "to whom or for whom" something is done. Use Direktes Objekt (Akkusativ) when it receives the action of the verb.