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