public async Task <IList <ReadUserDepartmentDto> > GetUserDepartmentDtos(Guid deptId, int pageIndex,
                                                                                 int pageSize, string filterKeyword)
        {
            using (_dbContextScopeFactory.CreateReadOnly())
            {
                var results = await _userDepartmentRepository.GetUserDepartments(deptId, pageIndex, pageSize, filterKeyword);

                //var allJobTitle = await _userJobTitleRepository.GetListUserJobTitle();
                //var allDeptDtos = await _departmentServices.GetAllCachedDepartments();
                //var allUserDtos = _userServices.GetAllCachedUsers();
                var models = _mapper.Map <List <ReadUserDepartmentDto> >(results);
                //ConvertToUserDepartmentDto(models, allJobTitle, allUserDtos, allDeptDtos, (pageIndex - 1) * pageSize);
                var startIndex = (pageIndex - 1) * pageSize;
                foreach (var userDept in models)
                {
                    startIndex++;
                    userDept.RecordID = startIndex;
                }
                return(models);
            }
        }