コード例 #1
0
        public IActionResult EnterSuggestion(AddResturant resturant)
        {
            if (ModelState.IsValid)
            {
                tempstorage.AddResturant(resturant);
                return(View("Conformation", resturant));
            }

            return(View());
        }
コード例 #2
0
ファイル: tempstorage.cs プロジェクト: heathhartley/FoodWeb
 public static void AddResturant(AddResturant rest)
 {
     resturants.Add(rest);
 }