Exemplo n.º 1
0
        // EDIT

        public ActionResult EditState(State state)
        {
            try
            {
                var results = stateAdapter.EditState(state);

                if (results != 1)
                {
                    return(View("Error"));
                }

                return(RedirectToAction("ViewAllStates"));
            }
            catch
            {
                return(View());
            }
        }