public IActionResult SelectLists()
        {
            SelectListsViewModel vm = new SelectListsViewModel();

            vm.SelectedValue1 = "cpp";
            vm.SelectedValue2 = "js";
            vm.MultiValues    = new List <string> {
                "csharp", "cpp"
            };
            vm.SelectedValues = new List <string> {
                "csharp", "js"
            };

            return(View(vm));
        }
Beispiel #2
0
 public IActionResult Index(SelectListsViewModel viewModel)
 {
     return(View("Results", viewModel));
 }