/**
  * Creates a new Restaurant model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Restaurant();
     $map = new \common\models\ResMap();
     if ($model->load(Yii::$app->request->post()) && $model->editsave()) {
         Yii::$app->session->setFlash("restaurant_notification", Yii::t("app", "Restaurant Created!"));
         return $this->redirect(['index']);
     } else {
         return $this->render('create', ['model' => $model, 'map' => $map]);
     }
 }