/**
  * Creates a new EntpCustomer model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Customer();
     if ($model->load(Yii::$app->request->post())) {
         $model->loadDefaultValues();
         $model->save();
         if ($model->save()) {
             $cust = new EntpCustomer();
             $cust->customer_id = $this->id;
             $cust->entrepreneur_user_id = Yii::$app->user->id;
             $cust->link('customer', $model);
         }
         Yii::$app->session->setFlash('success', 'Create New Customer Success');
         return $this->redirect(['index']);
         //return $this->redirect(['view', 'entrepreneur_user_id' => $model->entrepreneur_user_id, 'customer_id' => $model->customer_id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }