public ActionResult AddUpdateCity() { CountryController countryController = new CountryController(); ViewBag.States = countryController.States(); return(View(new CityViewModel())); }
public ActionResult EditCity(int Id, String Name, int StateId = 0) { CityViewModel cityViewModel = new CityViewModel { Id = Id, CityName = Name, StateId = StateId, }; CountryController countryController = new CountryController(); ViewBag.States = countryController.States(); return(View("AddUpdateCity", cityViewModel)); }