public ActionResult EditState(State state) { State s = serviceState.GetById(state.StateID); if (ModelState.IsValid) { s.Country = state.Country; s.StateName = state.StateName; serviceState.Update(s); serviceState.Commit(); return(RedirectToAction("States")); } return(View(state)); }