private void RebindBookingPaymentData() { if (ucSitePicker.SiteId > 0 && uiDateFrom.SelectedDate.HasValue && uiDateTo.SelectedDate.HasValue) { Globals.IsBusy = true; int payment = 2; if (radPaid.IsChecked == true) { payment = 1; } else if (radNotPaid.IsChecked == true) { payment = 0; } DataServiceHelper.ListBookingPaymentAsync(Globals.UserLogin.UserOrganisationId, ucSitePicker.SiteId, null, null, null, uiDateFrom.SelectedDate.Value, uiDateTo.SelectedDate.Value, payment, ListBookingPaymentCompleted); } }