public async void LoadData() { if (_userService.IsAuthenticated()) { username = await _storageService.GetFromCache <string>("username"); _dialogService.ShowLoading("Loading..."); var custs = await customerDataService.GetCustomersForMarketer(username); if (custs != null) { Customers = custs.ToObservableCollection(); _dialogService.HideLoading(); } else { _dialogService.HideLoading(); _dialogService.ShowToast("Hey! You have not yet added any Customer."); } } }