/// <summary>
        /// 获取Organization的分页列表信息
        ///</summary>
        /// <param name="input"></param>
        /// <returns></returns>

        public async Task <PagedResultDto <OrganizationListDto> > GetPagedAsync(GetOrganizationsInput input)
        {
            var query = _entityRepository.GetAll();
            // TODO:根据传入的参数添加过滤条件


            var count = await query.CountAsync();

            var entityList = await query
                             .OrderBy(input.Sorting).AsNoTracking()
                             .PageBy(input)
                             .ToListAsync();

            // var entityListDtos = ObjectMapper.Map<List<OrganizationListDto>>(entityList);
            var entityListDtos = entityList.MapTo <List <OrganizationListDto> >();

            return(new PagedResultDto <OrganizationListDto>(count, entityListDtos));
        }
        /// <summary>
        /// 获取Organization的分页列表信息
        ///</summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <PagedResultDto <OrganizationListDto> > GetPagedOrganizationsAsync(GetOrganizationsInput input)
        {
            var query = _organizationRepository.GetAll()
                        .WhereIf(!string.IsNullOrEmpty(input.Name), u => u.DepartmentName.Contains(input.Name));;
            // TODO:根据传入的参数添加过滤条件

            var organizationCount = await query.CountAsync();

            var organizations = await query
                                .OrderBy(input.Sorting).AsNoTracking()
                                .PageBy(input)
                                .ToListAsync();

            // var organizationListDtos = ObjectMapper.Map<List <OrganizationListDto>>(organizations);
            var organizationListDtos = organizations.MapTo <List <OrganizationListDto> >();

            return(new PagedResultDto <OrganizationListDto>(
                       organizationCount,
                       organizationListDtos
                       ));
        }