Ejemplo n.º 1
0
        // DELETE

        public ActionResult DeleteState(int state)
        {
            try
            {
                var results = stateAdapter.DeleteState(state);

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

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