Esempio n. 1
0
        [HttpGet] // only if a GET request
        public IActionResult Create()
        {
            ViewBag.CuisineTypeList = _restaurantData.GetAllCuisineTypes();

            return(View()); // Looks for a view named "Create" in /views/shared or /views/home. In this case, it's a form.
        }