public IActionResult OnGet(int foodItemId) { FoodItem = restaurantData.DeleteFoodItem(foodItemId); if (FoodItem == null) { return(RedirectToPage("./NotFound")); } return(Page()); }
public IActionResult OnGet(int foodItemId) { FoodItem = restaurantData.DeleteFoodItem(foodItemId); if (FoodItem == null) { return(RedirectToPage("./NotFound")); } return(Page()); }