public ActionResult Delete(int id) { try { ctx.DeleteDepa(id); return(RedirectToAction("Index", "Departamentos")); } catch { return(View()); } }
public ActionResult Delete(int id) { try { ctx.DeleteDepa(id); return(RedirectToAction("Index", "Departamentos")); } catch { return(View()); } }