示例#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);
        }