// GET: Timetable/Edit/5 public ActionResult Edit(int id) { timetable h = a.getTimetableById(id); a.deleteTimetableById(id); return(View(h)); }