public async Task <IActionResult> GetAllPagesByModuleIdAsync(
            [FromRoute] int moduleId,
            CancellationToken token = default)
        {
            try
            {
                var serviceResponse = await _modulesService.GetAllPagesByModuleIdAsync(moduleId, token);

                return(new OkObjectResult(Mapper.Map <IEnumerable <GetPagesByModuleIdResponseDto> >(serviceResponse)));
            }
            catch (Exception)
            {
                return(new BadRequestResult());
            }
        }