public async Task OnGet() { // set all the data for my .cshtml page. // Get the specific Restaurant data for the id that was sent. Restaurant = await _restaurant.FindRestaurant(ID); }
public async Task OnGet() { Restaurant = await _restaurant.FindRestaurant(ID.GetValueOrDefault()) ?? new Restaurant(); }