public void OnGet() { Restaurants = string.IsNullOrEmpty(SearchTerm) ? _restaurantData.GetAll() : _restaurantData.FilterByName(SearchTerm); }