private async Task <ObservableCollection <Runner> > GetAllRunners() { IsBusy = true; Runners = new ObservableCollection <Runner>(await RunnerServices.GetAllRunners()); IsBusy = false; return(Runners); }
public async void GetRunners() { IsBusy = true; Runners = await RunnerServices.GetAllRunners(); IsBusy = false; IsRunnerEmpty = Runners.Count == 0 ? true : false; }