コード例 #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));
        }
コード例 #2
0
        public IActionResult IndexMultiSelect()
        {
            var model = new CountryViewModelIEnumerable();

            return(View(model));
        }
コード例 #3
0
        public IActionResult CountryIEnumeable()
        {
            var viewModel = new CountryViewModelIEnumerable();

            return(View(viewModel));
        }