public ActionResult CDistrito(Distritox DistritoToCreate) { try { // TODO: Add insert logic here _entities.AddToDistrito(DistritoToCreate); _entities.SaveChanges(); return(RedirectToAction("DDistrito")); } catch { return(View()); } }
public ActionResult CDistrito(Distritox DistritoToCreate) { try { // TODO: Add insert logic here _entities.AddToDistrito(DistritoToCreate); _entities.SaveChanges(); return(RedirectToAction("DDistrito")); } catch { return(View()); } }