public IActionResult ExcluirConfirma(int?id) { try { ContatoDao.ExcluirContato(id); } catch { return(View("Error")); } return(View("Index")); }