Helper/Data.php
public function getWebsite()
    {
        $websiteId = $this->_request->getParam('website', false);
        if ($websiteId) {
            return $this->storeManager->getWebsite($websiteId);
        }

        return $this->storeManager->getWebsite();
    }
public function getWebsite()
    {
        $websiteId = $this->_request->getParam('website', false);
        if ($websiteId) {
            return $this->storeManager->getWebsite($websiteId);
        }

        return $this->storeManager->getWebsite();
    }
public function getWebsite ( ) { $ websiteId = $ this -> _request -> getParam ( 'website' , false ) ; if ( $ websiteId ) { return $ this -> storeManager -> getWebsite ( $ websiteId ) ; } return $ this -> storeManager -> getWebsite ( ) ; }
Get website selected in admin.

@return \Magento\Store\Api\Data\WebsiteInterface
Get website selected in admin .