public async Task <IActionResult> GetAllModulesByOrganisationIdAsync( [FromQuery] int organisationId, CancellationToken token = default) { try { var serviceResponse = await _modulesService.GetAllModulesByOrganisationId(organisationId, token); return(new OkObjectResult(Mapper.Map <IEnumerable <GetModuleResponseDto> >(serviceResponse))); } catch (BadRequestException e) { return(new BadRequestObjectResult(e.Message)); } }