public async Task <IActionResult> GetPagedUserDepartment([FromQuery] UserDepartmentParams userDepartmentParams)
        {
            var userDepartment = await userDepartmentRepository.GetPagedUserDepartment(userDepartmentParams);

            var result = mapper.Map <IEnumerable <ViewUserDepartmentResource> >(userDepartment);

            Response.AddPagination(userDepartment.CurrentPage, userDepartment.PageSize, userDepartment.TotalCount, userDepartment.TotalPages);

            return(Ok(result));
        }