public void refreshTable()
        {
            List <Advertisement> ads = ac.getAllAdvertisement();

            dataGrid.ItemsSource = ads;
        }