Пример #1
0
        private async Task <List <Runner> > GetRunnersbyEvent()

        {
            var returned = await RunnerServices.GetRunnersByEventID(Event.Id);

            SelectedRunners      = new ObservableCollection <Runner>(returned);
            SelectedRunnersCount = SelectedRunners.Count;
            foreach (var runner in SelectedRunners)
            {
                Runners.Remove(Runners.SingleOrDefault(i => i.Id == runner.Id));
            }

            IsBusy = false;
            return(returned);
        }