protected function post()
    {
        $parameters = $this->getParameters();
        try {
            return $this->getCrudService()->createFromArray($parameters);
        }
        /** @noinspection PhpRedundantCatchClauseInspection */
        catch (common_exception_PreConditionFailure $e) {
            throw new common_exception_RestApi($e->getMessage());
        }
    }