/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy(Request $request, Partecipante $partecipante)
 {
     $partecipante->delete();
     if ($request->ajax() || $request->wantsJson()) {
         return new JsonResponse($partecipante);
     }
     return redirect('partecipanti');
 }