backend/modules/api/controllers/ResellersController.php
/**
    * Store a newly created resource in storage.
    * @param new resellers resourse
    */
Store a newly created resource in storage.
@param new resellers resourse
Store a newly created resource in storage . @param new resellers resourse
public function actionCreateReseller(){
        $data = Yii::$app->request->post("data");
        if($this->resellers->createReseller($data)){
            return ['resourse'=> $this->resellers->showResellers() ,"status" => "success"];
        }
        return ['resourse'=>null,"status" => "User Role with this email address is not role reseller"];
    }
public function actionCreateReseller ( ) { $ data = Yii :: $ app -> request -> post ( " data " ) ; if ( $ this -> resellers -> createReseller ( $ data ) ) { return [ 'resourse' => $ this -> resellers -> showResellers ( ) , " status " => " success " ] ; } return [ 'resourse' => null , " status " => " User Role with this email address is not role reseller " ] ; }
Store a newly created resource in storage.
Store a newly created resource in storage .