Beispiel #1
0
        private async void GetDataAsync()
        {
            try
            {
                //test
                //https://localhost:5001/api/Trip/GetAllTrips
                var list = await TripController.GetAllAsync();

                foreach (var trip in list)
                {
                    this.TripList.Add(trip);
                }
                GotDataNotSuccesfull = false;
            }
            catch (Exception)
            {
                GotDataNotSuccesfull = true;
            }
            IsBusy      = false;
            LoadingDone = true;
        }