Пример #1
0
        public IActionResult EnterSuggestion(AddResturant resturant)
        {
            if (ModelState.IsValid)
            {
                tempstorage.AddResturant(resturant);
                return(View("Conformation", resturant));
            }

            return(View());
        }
Пример #2
0
 public static void AddResturant(AddResturant rest)
 {
     resturants.Add(rest);
 }