Refatoring ManagerController.