常用方法
常用方法
常用方法
常用方法
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()); } }