Esempio n. 1
0
 public ActionResult Delete(int id, Pais pais)
 {
     try
     {
         var paisDAO = new PaisDAO();
         paisDAO.DeletePais(id);
         this.AddFlashMessage("Registro excluido com sucesso!");
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }