public ActionResult Delete(int id) { try { // TODO: Add delete logic here if (ModelState.IsValid) { _paiesService.EliminarPais(id); return(RedirectToAction("Index")); } return(View(id)); } catch { return(View()); } }
public ActionResult Delete(int id) { try { // TODO: Add delete logic here if (ModelState.IsValid) { _paiesService.EliminarPais(id); return(RedirectToAction("Index")); } return(View(id)); } catch { return(View()); } }