Beispiel #1
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         var fornecedorDAO = new FornecedorDAO();
         fornecedorDAO.DeleteFornecedor(id);
         this.AddFlashMessage("Registro Removido  com sucesso!");
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }