private async void Add_User_Click(object sender, RoutedEventArgs e) { var response = await RestAPIFunctions.Post(txtName.Text, txtEmail.Text, cmbGender.Text, cmbStatus.Text); //EmployeeData.ItemsSource = RestAPIFunctions.BeautifyJson(response); //Refresh the table! _ = RestAPIFunctions.GetAll(); MainWindow mainwindow = new MainWindow(); mainwindow.lblPageInfo.Content = mainwindow.PageNumberDisplay(); }