public ActionResult preDelete(int noteId) { NoteDAO.preDelete(noteId); return(RedirectToAction("detail")); }