Beispiel #1
0
        public async Task Init()
        {
            var list = await _treneriService.Get <IEnumerable <treneri> >(null);

            TreneriList.Clear();
            foreach (var trener in list)
            {
                TreneriList.Add(trener);
            }
        }
        public async Task Init()
        {
            var list = await _treneriService.Get <IEnumerable <Trener> >(null);

            var list1 = await _terminiService.Get <IEnumerable <SlobodniTermini> >(null);

            TreneriList.Clear();
            TerminiList.Clear();
            foreach (var trener in list)
            {
                TreneriList.Add(trener);
            }
            foreach (var termin in list1)
            {
                TerminiList.Add(termin);
            }
        }