public function data()
 {
     $vocabularyHasVersionsBuilder = $this->repo->search('', false);
     return Datatables::of($vocabularyHasVersionsBuilder)->addColumn('actions', function ($model) {
         return '<a class="btn default btn-xs purple" href="/vocabularyHasVersions/' . $model->id . '/edit' . '"><i class="fa fa-edit"></i> Editar </a>
             <a href="/vocabularyHasVersions/' . $model->id . '/delete' . '" class="btn btn-xs red"><i class="glyphicon glyphicon-trash"></i> </a>';
     })->make(true);
 }
 /**
  * Remove the specified VocabularyHasVersion from storage.
  * DELETE /vocabularyHasVersions/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->vocabularyHasVersionRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "VocabularyHasVersion deleted successfully");
 }