give (one) a pasting
1. To soundly defeat or best one; to defeat one by a wide margin. Their team's inexperience showed on the pitch today, as the powerful squad from New Zealand really gave them a pasting.
2. To very strongly rebuke, criticize, condemn, or punish one. The principal gave Mark a pasting because of that prank he pulled in class yesterday.