/**
  * Remove the specified ActivityLog from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $activityLog = $this->activityLogRepository->find($id);
     if (empty($activityLog)) {
         $this->throwRecordNotFoundException("ActivityLog not found", ERROR_CODE_RECORD_NOT_FOUND);
     }
     $activityLog = $this->activityLogRepository->delete($id);
     $meta = array('total' => count($activityLog), 'count' => count($activityLog), 'offset' => 0, 'last_updated' => $this->activityLogRepository->lastUpdated(), 'status' => "ActivityLog deleted successfully.", 'error' => 'Success');
     return Response::json(ResponseManager::makeResult($id, $meta));
 }
 /**
  * Remove the specified ActivityLog from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $activityLog = $this->activityLogRepository->find($id);
     if (empty($activityLog)) {
         Flash::error('ActivityLog not found');
         return redirect(route('activityLogs.index'));
     }
     $activityLog = $this->activityLogRepository->delete($id);
     Flash::message('ActivityLog deleted successfully.');
     return redirect(route('activityLogs.index'));
 }