Пример #1
0
function deleteHotel()
{
    $admin = new Hotels();
    $admin->setHotelId($_REQUEST['id']);
    if ($admin->deleteHotel()) {
        Common::jsonSuccess("Hotel Deleted Succesfully");
    } else {
        Common::jsonError("Error");
    }
}