async void TextChangedHandler(object sender, TextChangedEventArgs e) { FoodListView.BeginRefresh(); await ViewModel.APISearch(e.NewTextValue); FoodListView.ItemsSource = ViewModel.MyFoodList.Take(5); FoodListView.EndRefresh(); }
public IActionResult List() { var foodlistView = new FoodListView(); foodlistView.Foods = FR.GetAllFood; foodlistView.CurrentCategory = "Best Sellers!"; return(View(foodlistView)); //return View(FR.GetAllFood); }