Update DepartmentsController.php