backend/modules/api/controllers/ResellersController.php
/**
    * @param reseller id
    * @return new resellers resourse
    */
@param reseller id
@return new resellers resourse
@param reseller id @return new resellers resourse
public function actionUpdateReseller(){
        $reseller = Yii::$app->request->post("reseller");
        if($this->resellers->updateReseller($reseller)){
            return ['status'=>'success',"resource"=>$this->resellers->showResellers()];
        }
        return ['status'=>'Error Occured',"resource"=>null];
    }
public function actionUpdateReseller ( ) { $ reseller = Yii :: $ app -> request -> post ( " reseller " ) ; if ( $ this -> resellers -> updateReseller ( $ reseller ) ) { return [ 'status' => 'success' , " resource " => $ this -> resellers -> showResellers ( ) ] ; } return [ 'status' => 'Error Occured' , " resource " => null ] ; }
@param reseller id
 @return new resellers resourse
@param reseller id @return new resellers resourse