public ActionResult Edit(City city) { if (ModelState.IsValid) { cityMgr.EditCity(city); ViewBag.EditMessage = "City Edited Sucessfully"; return(RedirectToAction("Index")); } ViewBag.EditMessage = "Something went wrong try again..."; return(View(city)); }