예제 #1
0
 public ActionResult EliminarContacto(int id)
 {
     try
     {
         AgendaService agendaService = new AgendaService();
         var           model         = agendaService.Delete(id);
         return(RedirectToAction("Detalle", "Agenda"));
     }
     catch (System.Exception)
     {
         return(View("Error"));
     }
 }