Ejemplo n.º 1
0
        public static void DelegateToPreviousHead(long deptId)
        {
            long previousHead = DepartmentDAO.GetPreviousHead(deptId);
            long currentHead  = DepartmentDAO.GetCurrentHeadById(deptId);

            DelegateDAO.DeleteDelegate(deptId, currentHead);
            EmployeeDAO.ChangeEmployeeRoles(deptId);
            DepartmentDAO.UpdateDepartmentHead(deptId, previousHead);
        }