/** * @return \Magento\Framework\Model\AbstractModel|void */ public function afterSave() { /** @var \WebShopApps\MatrixRate\Model\ResourceModel\Carrier\Matrixrate $matrixRate */ $matrixRate = $this->_matrixrateFactory->create(); $matrixRate->uploadAndImport($this); return parent::afterSave(); }