public ActionResult GetCity(string Country) { if (ModelState.IsValid) { // CountryList = Dbclass.getCountry(); ViewBag.L = CountryList; CityList = Dbclass.getCity(Country); if (CityList != null) { ViewBag.city = new SelectList(CityList, "CITY_NAME", "CITY_NAME"); return(PartialView("DisplayCities")); } } return(View("Insert")); }