/**
  * Remove the subscription for the calendar.
  * @param int $id
  */
 public function actionUnsubscribe($id)
 {
     $savedCalendarSubscription = SavedCalendarSubscription::getById(intval($id));
     $savedCalendarSubscription->delete();
     $dataProvider = CalendarUtil::getCalendarItemsDataProvider(Yii::app()->user->userModel);
     $savedCalendarSubscriptions = $dataProvider->getSavedCalendarSubscriptions();
     $content = CalendarUtil::makeCalendarItemsList($savedCalendarSubscriptions->getSubscribedToSavedCalendarsAndSelected(), 'sharedcalendar[]', 'sharedcalendar', 'shared');
     echo $content;
 }