backend/modules/api/controllers/ContactController.php
/**
    * Delete checked messages from storage
    * @return new resourses 
    */
Delete checked messages from storage
@return new resourses
Delete checked messages from storage @return new resourses
public function actionDeleteChecked(){
        $data = Yii::$app->request->post('data');
        if($this->contact_us_messages->deleteChecked($data)){
            $messages = $this->contact_us_messages->showMessages();
            return ['resource'=> $this->contact_us_messages->showMessages(),'status'=>200];
        }
        return ['resource'=>null,'status'=>500];
    }
public function actionDeleteChecked ( ) { $ data = Yii :: $ app -> request -> post ( 'data' ) ; if ( $ this -> contact_us_messages -> deleteChecked ( $ data ) ) { $ messages = $ this -> contact_us_messages -> showMessages ( ) ; return [ 'resource' => $ this -> contact_us_messages -> showMessages ( ) , 'status' => 200 ] ; } return [ 'resource' => null , 'status' => 500 ] ; }
Delete checked messages from storage
 @return new resourses
Delete checked messages from storage @return new resourses