예제 #1
0
        public IActionResult IndexGroup(CountryViewModelGroup model)
        {
            if (ModelState.IsValid)
            {
                var msg = model.Country + " selected";
                return RedirectToAction("IndexSuccess", new { message = msg});
            }

            return View(model);
        }
예제 #2
0
        public IActionResult IndexGroup()
        {
            var model = new CountryViewModelGroup();

            return View(model);
        }