auth(__FUNCTION__); return response()->json(GrupoService::create(), Response::HTTP_OK); } public function store() { $this->auth(__FUNCTION__); return response()->json(GrupoService::store(), Response::HTTP_CREATED); } public function datatable() { return GrupoService::datatable()->skipTotalRecords()->toJson(); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(GrupoService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(GrupoService::update($id), Response::HTTP_OK); } public function bloquear($id) { $this->auth(__FUNCTION__); return response()->json(GrupoService::bloquear($id), Response::HTTP_OK); } public function destroy($id) { $this->auth(__FUNCTION__); return response()->json(GrupoService::destroy($id), Response::HTTP_NO_CONTENT); } }