async void NewQRCommandExecute(object parameter) { await DataProvider?.AddData(Question.ShowAsync, Toast.ShowAsync); QRList = await DataProvider?.GetData(Question.ShowAsync, Toast.ShowAsync); NotifyPropertyChanged(nameof(QRList)); }
public IActionResult OnPost(int key, int value) { if (key < 1) { ViewData["Message"] = "Ключ не может быть меньше 1"; return(Page()); } dataProvider.AddData(key, value); return(RedirectToPage("Index")); }
public void AddLog(string text) { _dataProvider.AddData(text); }