public ActionResult Create(Pais pais) { try { if (ModelState.IsValid) { _paiesService.AddPais(pais); return(RedirectToAction("Index")); } return(View(pais)); } catch { return(View()); } }
public ActionResult Create(Pais pais) { try { if (ModelState.IsValid) { _paiesService.AddPais(pais); return(RedirectToAction("Index")); } return(View(pais)); } catch { return(View()); } }