public function indexAction()
{
if ($this->getRequest()->isPut()) {
$inputFilter = $this->getInputFilter();
$data = array_filter($inputFilter->getValues());
return new JsonModel($this->userResource->patch($this->getIdentity()->getName(), $data));
}
/** @var \Zfegg\Admin\V1\Rest\AdminUser\AdminUserEntity $entity */
$entity = $this->userResource->fetch($this->getIdentity()->getName());
return new JsonModel($entity);
}