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