public async Task <IEnumerable <PageServiceObject> > GetAllPagesByModuleIdAsync(int moduleId, CancellationToken token) { var serviceResult = await _moduleRepository.GetAllPagesByModuleIdAsync(moduleId, token); return(_mapper.Map <IEnumerable <PageServiceObject> >(serviceResult)); }