public function ProcessDataRequest($dataRequest)
 {
     if ($dataRequest == 'all') {
         $this->page->SetResourcesJson(array_map(array('AdminResourceJson', 'FromBookable'), $this->resourceRepository->GetResourceList()));
     } else {
         if ($dataRequest == 'users') {
             $groups = $this->resourceRepository->GetUsersWithPermission($this->page->GetResourceId());
             $response = new UserResults($groups->Results(), $groups->PageInfo()->Total);
             $this->page->SetJsonResponse($response);
         } else {
             if ($dataRequest == 'groups') {
                 $groups = $this->resourceRepository->GetGroupsWithPermission($this->page->GetResourceId());
                 $response = new GroupResults($groups->Results(), $groups->PageInfo()->Total);
                 $this->page->SetJsonResponse($response);
             }
         }
     }
 }