/**
  * Store a newly created PartnerTransaction in storage.
  *
  * @param CreatePartnerTransactionRequest $request
  *
  * @return Response
  */
 public function store(CreatePartnerTransactionRequest $request)
 {
     $input = $request->all();
     $partnerTransaction = $this->partnerTransactionRepository->create($input);
     Flash::success('PartnerTransaction saved successfully.');
     return redirect(route('partnerTransactions.index'));
 }
 /**
  * Store a newly created PartnerTransaction in storage.
  * POST /partnerTransactions
  *
  * @param Request $request
  *
  * @return Response
  */
 public function store(Request $request)
 {
     if (sizeof(PartnerTransaction::$rules) > 0) {
         $this->validateRequestOrFail($request, PartnerTransaction::$rules);
     }
     $input = $request->all();
     $partnerTransactions = $this->partnerTransactionRepository->create($input);
     return $this->sendResponse($partnerTransactions->toArray(), "PartnerTransaction saved successfully");
 }