public function action_ajaxdelete()
 {
     if ($this->req->idloc) {
         $db = DB::get_instance();
         $lm = new LocationManager($db);
         $loc = $lm->get($this->req->idloc);
         echo var_dump($loc);
         echo var_dump($this->req->idloc);
         if ($loc) {
             $lm->delete($loc);
         }
         exit;
     }
 }