public IActionResult RestaurantForm(UserRestaurant userRest) { if (ModelState.IsValid) { TempStorage.AddRestaurantToList(userRest); return(View("Confirm", userRest)); } else { return(View()); } }
public IActionResult RestaurantForm(UserRestaurant userRest) { if (ModelState.IsValid) { TempStorage.AddRestaurantToList(userRest); return(View("Confirm", userRest)); } else { return(View()); } }