public function actionDelete($id)
 {
     $params = $this->getQuery();
     $accountId = $this->getAccountId();
     $productCategoryInfo = ProductCategory::findByPk($id);
     if (ProductCategory::RESERVATION_CATEGORY_NAME == $productCategoryInfo->name) {
         throw new InvalidParameterException(Yii::t('product', 'categoryName_isUsed'));
     }
     ProductCategory::deleteCategory($id, $accountId);
     Yii::$app->getResponse()->setStatusCode(204);
 }