/**
  * @param int $id
  * @return Response
  *
  * @SWG\Get(
  *      path="/ajudas/{id}",
  *      summary="Display the specified Ajuda",
  *      tags={"Ajuda"},
  *      description="Get Ajuda",
  *      produces={"application/json"},
  *      @SWG\Parameter(
  *          name="id",
  *          description="id of Ajuda",
  *          type="integer",
  *          required=true,
  *          in="path"
  *      ),
  *      @SWG\Response(
  *          response=200,
  *          description="successful operation",
  *          @SWG\Schema(
  *              type="object",
  *              @SWG\Property(
  *                  property="success",
  *                  type="boolean"
  *              ),
  *              @SWG\Property(
  *                  property="data",
  *                  ref="#/definitions/Ajuda"
  *              ),
  *              @SWG\Property(
  *                  property="message",
  *                  type="string"
  *              )
  *          )
  *      )
  * )
  */
 public function show($id)
 {
     /** @var Ajuda $ajuda */
     $ajuda = $this->ajudaRepository->findWithoutFail($id);
     if (empty($ajuda)) {
         return Response::json(ResponseUtil::makeError('Ajuda not found'), 404);
     }
     return $this->sendResponse($ajuda->toArray(), 'Ajuda retrieved successfully');
 }
 /**
  * Remove the specified Ajuda from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $ajuda = $this->ajudaRepository->findWithoutFail($id);
     if (empty($ajuda)) {
         Flash::error('Ajuda not found');
         return redirect(route('ajudas.index'));
     }
     $this->ajudaRepository->delete($id);
     Flash::success('Ajuda deleted successfully.');
     return redirect(route('ajudas.index'));
 }