예제 #1
0
        public async Task <TData> DeleteForm(string ids)
        {
            TData obj = new TData();

            foreach (long id in TextHelper.SplitToArray <long>(ids, ','))
            {
                if (departmentService.ExistChildrenDepartment(id))
                {
                    obj.Message = "该部门下面有子部门!";
                    return(obj);
                }
            }
            await departmentService.DeleteForm(ids);

            obj.Tag = 1;
            return(obj);
        }