Пример #1
0
        private async void SaveToDatabase()
        {
            IEnumerable <BookIraModel> primke = IraItems.Where(x => x.RedniBroj > _maxRedniBroj);
            var list = new List <BookIraModel>(primke);

            IsLoading = true;
            await _bookIraEndpoint.PostPrimke(list);

            _loaded = false;
            LoadIra();
        }
Пример #2
0
        private async void SaveToDatabase()
        {
            IEnumerable <BookIraModel> primke = IraItems.Where(x => x.RedniBroj > _maxRedniBroj);
            var list = new List <BookIraModel>(primke);

            StatusMessage = "Zapisujem u bazu podataka...";
            await _bookIraEndpoint.PostPrimke(list);

            StatusMessage = "";;

            _loaded = false;
            LoadIra();
        }