protected function submitEditCountryState()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCountryState();
        } else if ($this->isPosted('save') && $this->validateEditCountryState()) {
            if (isset($this->data_state['state_id'])) {
                $this->updateCountryState();
            } else {
                $this->addCountryState();
            }
        }
    }
protected function submitEditCountryState()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCountryState();
        } else if ($this->isPosted('save') && $this->validateEditCountryState()) {
            if (isset($this->data_state['state_id'])) {
                $this->updateCountryState();
            } else {
                $this->addCountryState();
            }
        }
    }
protected function submitEditCountryState ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteCountryState ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditCountryState ( ) ) { if ( isset ( $ this -> data_state [ 'state_id' ] ) ) { $ this -> updateCountryState ( ) ; } else { $ this -> addCountryState ( ) ; } } }
Handles a submitted country state data
Handles a submitted country state data