public ActionResult Delete(int id, FormCollection collection) { try { // TODO: Add delete logic here DisciplinaDAO.ExcluirPorId(id); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Delete(int id, FormCollection collection) { try { // TODO: Add delete logic here DisciplinaDAO.ExcluirPorId(id); return(RedirectToAction("Index")); } catch { return(View()); } }