public ActionResult Index() { var input = new AjaxDropdownDemoInput { Country = 3, }; var h = hobbyRepo.GetAll().FirstOrDefault(); if (h != null) input.HobbyGuid = h.IdGuid; ViewData["VCountry"] = 5; return View(input); }
public ActionResult Index(AjaxDropdownDemoInput input) { ViewData["VCountry"] = Request.Form["VCountry"]; return View(input); }