First, make sure you are linked to the class

 

Then set work as you usually would for the class.

In the "Assign task" box, change the "Marking teacher" to the correct member of the department.

 

You can safely unlink yourself from the class afterward, if you wish.