/**
  * Updates an existing Brands model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id
  * @return mixed
  */
 public function actionUpdate()
 {
     $id=Auction::$app->request->post('id');
     if($id){
         $model = Auctions::findOne($id);
         if ($model->load(Auction::$app->request->post()) && $model->save()) {
             return 'Successfully Updated';
         } else {
             return $this->renderPartial('update', [
                 'model' => $model,
             ]);
         }
     }
 }
 /**
  * Finds the Auctions model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Auctions the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Auctions::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }