Exemple #1
0
        public IActionResult IndexMultiSelect(CountryViewModelIEnumerable model)
        {
            if (ModelState.IsValid)
            {
                string strCountriesSelected="";
                foreach (string s in model.CountryCodes)
                {
                    strCountriesSelected = strCountriesSelected + " " + s;
                }
                return RedirectToAction("IndexSuccess", new { message = strCountriesSelected });
            }

            return View(model);
        }
Exemple #2
0
 public IActionResult IndexMultiSelect()
 {
     var model = new CountryViewModelIEnumerable();
     return View(model);
 }