public async void GetRestoSandwichMenu() { try { RestoInfoList.Add(await restoSource.GetRestoSandwichMenu()); OnPropertyChanged(); } catch (DataSourceException ex) { await ErrorDialogFactory.NetworkErrorDialog().ShowAsync(); } }
public async void GetRestoMenus() { try { IEnumerable <DailyMenu> restoMenus = await restoSource.GetRestoMenus(4); foreach (var restoMenu in restoMenus) { RestoInfoList.Add(restoMenu); } OnPropertyChanged(); } catch (DataSourceException ex) { await ErrorDialogFactory.NetworkErrorDialog().ShowAsync(); } }