/**
  * Remove the specified PartnerTransaction from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $partnerTransaction = $this->partnerTransactionRepository->find($id);
     if (empty($partnerTransaction)) {
         Flash::error('PartnerTransaction not found');
         return redirect(route('partnerTransactions.index'));
     }
     $this->partnerTransactionRepository->delete($id);
     Flash::success('PartnerTransaction deleted successfully.');
     return redirect(route('partnerTransactions.index'));
 }
 /**
  * Remove the specified PartnerTransaction from storage.
  * DELETE /partnerTransactions/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->partnerTransactionRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "PartnerTransaction deleted successfully");
 }