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(); }
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(); }