Exemplo n.º 1
0
        public async Task Promjena(int stranica)
        {
            Zapisi.Clear();
            IsBusy = true;
            model  = await _apiServices.Zapisi(idPodforum, stranica);

            IsBusy   = false;
            Zapisi   = new ObservableCollection <Zapis>(model.Zapisi);
            Stranica = model.PagingInfo.TotalPages;
            return;
        }
Exemplo n.º 2
0
        async void GetData(Guid id)
        {
            model = await _apiServices.Zapisi(id);

            idPodforum = id;
            Novi       = new Zapis();
            IsBusy     = false;
            Naslov     = model.Naslov;
            Mod        = model.Mod;
            Zapisi     = new ObservableCollection <Zapis>(model.Zapisi);
            Stranica   = model.PagingInfo.TotalPages;
        }