private async void InitializeData() { DialogService _dialogService = new DialogService(); CustomerDataService _customerDataService = new CustomerDataService(); if (Application.Current.Properties.ContainsKey("transCustomer")) { _customerEmail = (string)Application.Current.Properties["transCustomer"]; _dialogService.ShowLoading("Loading..."); var pricings = await _customerDataService.GetCustomersPricing(_customerEmail); if (pricings != null) { CustomerPricings = pricings.ToObservableCollection(); _dialogService.HideLoading(); } else { _dialogService.HideLoading(); await _dialogService.ShowDialog("Not found", "Customer information does not exist.", "Ok"); var navServ = App.ViewNavigationService; await navServ.GoBack(); } } else { await _dialogService.ShowDialog("Not found", "Customer information does not exist.", "Ok"); var navServ = App.ViewNavigationService; await navServ.GoBack(); } }