public function save(\Smile\ElasticsuiteThesaurus\Api\Data\ThesaurusInterface $thesaurus)
    {
        $this->validate($thesaurus);

        $thesaurus->save();

        $this->thesaurusRepositoryById[$thesaurus->getThesaurusId()] = $thesaurus;

        return $thesaurus;
    }
public function save(\Smile\ElasticsuiteThesaurus\Api\Data\ThesaurusInterface $thesaurus)
    {
        $this->validate($thesaurus);

        $thesaurus->save();

        $this->thesaurusRepositoryById[$thesaurus->getThesaurusId()] = $thesaurus;

        return $thesaurus;
    }
public function save ( \ Smile \ ElasticsuiteThesaurus \ Api \ Data \ ThesaurusInterface $ thesaurus ) { $ this -> validate ( $ thesaurus ) ; $ thesaurus -> save ( ) ; $ this -> thesaurusRepositoryById [ $ thesaurus -> getThesaurusId ( ) ] = $ thesaurus ; return $ thesaurus ; }
Save a thesaurus

@param \Smile\ElasticsuiteThesaurus\Api\Data\ThesaurusInterface $thesaurus Thesaurus data

@return \Smile\ElasticsuiteThesaurus\Api\Data\ThesaurusInterface

@throws \Magento\Framework\Exception\NoSuchEntityException
Save a thesaurus