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)); }
public IActionResult IndexMultiSelect() { var model = new CountryViewModelIEnumerable(); return(View(model)); }
public IActionResult CountryIEnumeable() { var viewModel = new CountryViewModelIEnumerable(); return(View(viewModel)); }