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