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);
        }
Exemple #2
0
 public async Task OnGet()
 {
     Restaurant = await _restaurant.FindRestaurant(ID.GetValueOrDefault()) ?? new Restaurant();
 }