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