/**
  * Deletes an existing Devices model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     if ($this->findModel($id)->delete()) {
         StoryDevice::delStory($id);
     }
     return $this->redirect(['index']);
 }