Ejemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            try
            {
                ctx.DeleteDepa(id);

                return(RedirectToAction("Index", "Departamentos"));
            }
            catch
            {
                return(View());
            }
        }