Turn it off. Immediately.
Put it in a bag of uncooked rice or silica gel and set it aside to let it dry. LEAVE IT THERE for at least a week. DO NOT attempt to turn it on.
It may already be too late to save it.
If it doesn't work after letting it dry, make an appointment at the genius bar and pay for an out of warranty replacement.