$leaveController->displayLeaveInfo(false, $e);
     }
     break;
 case 'Leave_Apply_view':
     $leaveController->displayLeaveInfo();
     break;
 case 'Leave_Apply_Admin_view':
     $leaveController->displayLeaveInfo(true);
     break;
 case 'Leave_Admin_Apply':
     $obj = $leaveRequestsExtractor->parseAddData($_POST, true);
     $leaveController->setObjLeave($obj);
     try {
         $leaveController->addLeave();
         $mes = $leaveController->adminApproveLeave();
         $id = $leaveController->getObjLeave()->getLeaveRequestId();
         $leaveController->sendAssignedLeaveNotification($leaveController->getObjLeave(), "assign");
         $leaveController->redirectToLeaveApplyPage(true, $mes, $id);
     } catch (DuplicateLeaveException $e) {
         $leaveController->displayLeaveInfo(true, $e);
     }
     break;
 case 'Leave_Type_View_Define':
     $leaveController->displayLeaveTypeDefine();
     break;
 case 'Leave_Type_Define':
     $obj = $LeaveTypeExtractor->parseLeaveType($_POST);
     $leaveController->setObjLeave($obj);
     $leaveController->addLeaveType();
     break;
 case 'Leave_Type_Summary':