示例#1
0
 public ActionResult Delete(int id)
 {
     try
     {
         fabricanteServico.DeletarFabricante(id);
         //TempData["Message"] = "Fabricante " + fabricante.Nome.ToUpper() + " Foi Removido";
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }