/**
  * @return mixed
  */
 public function index(Request $request, $idCarrier)
 {
     $carrier = $this->carrierRepository->find($idCarrier);
     if (!$carrier) {
         throw new UpdateResourceFailedException('Carrier not found');
     }
     try {
         $paginator = $this->repository->findAllByCarrierPaginate($request, $idCarrier);
         return $this->response->paginator($paginator, new BaseTransformer());
     } catch (QueryParserException $e) {
         throw new StoreResourceFailedException($e->getMessage(), $e->getFields());
     }
 }