Beispiel #1
0
        public IActionResult Index()
        {
            var viewModel = new Assignment7_1ViewModel
            {
            };

            return(View(viewModel));
        }
Beispiel #2
0
        public IActionResult Index(Assignment7_1ViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            return(RedirectToAction("Index", "Assignment7_1"));
        }