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