示例#1
0
        public void UcitajKorisnike()
        {
            Task <List <Korisnik> > task = Task.Run <List <Korisnik> >(async() => await _korisnik.Get <List <Korisnik> >(null));

            KorisnikList.Clear();
            KorisnikList.AddRange(task.Result);
        }
        public async Task UcitajKorisnike()
        {
            var list = await _korisnik.Get <List <Korisnik> >(null);

            KorisnikList.Clear();
            foreach (var k in list)
            {
                KorisnikList.Add(k);
            }
        }