The sentences are both correct. Part of your confusion may be on account of the fact that the sentences have slightly different structures. In the first sentence, there is what is termed a "direct object". The second sentence, however, employs an "indirect object". In both of these sentences, the basic idea is the same; a subject performs a verb on/to/for/with regard to an object.
Hi, I'm DonQuixote, a former GMAT Pill student who scored 780. I'm very grateful for this score and have now joined their staff My account of my GMAT experience can be found here.