Exemplo n.º 1
0
        /// <summary>
        /// 根据部门id批量删除部门
        /// </summary>
        /// <param name="departmentIds"></param>
        /// <returns></returns>
        public bool DeleteDepartment(List <int> departmentIds)
        {
            DepartmentManager DepartmentManager = new DepartmentManager();
            List <dynamic>    ids = new List <dynamic>();

            foreach (int id in departmentIds)
            {
                ids.Add(id);
            }

            return(DepartmentManager.DeleteByIds(ids.ToArray()));
        }