public function getById($id)
    {
        $modelResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('models/%s', $id))
        );

        return $this->getModelFromResult($modelResult);
    }
public function getById($id)
    {
        $modelResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('models/%s', $id))
        );

        return $this->getModelFromResult($modelResult);
    }
public function getById ( $ id ) { $ modelResult = $ this -> getRequest ( ) -> request ( 'GET' , $ this -> getRequestUrl ( sprintf ( 'models/%s' , $ id ) ) ) ; return $ this -> getModelFromResult ( $ modelResult ) ; }
Gets Model By Id

@param $id

@return Model

@throws \Exception
Gets Model By Id