Fix result of API course department add call.

It was setting the result to the wrong view variable.