Ejemplo n.º 1
0
        public ActionResult CreateState(StateViewModel model)
        {
            try
            {
                int id = model.Create();
                if (id > 0)
                {
                    return RedirectToAction("states");
                }
            }
            catch (Exception)
            {
            }

            return View(model);
        }