public ActionResult DeleteConfirmed(int id) { CourseDate lesson = lessonB.FindLesson(id); lessonB.RemoveLesson(lesson); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int id) { CourseDate lesson = lessonB.FindLesson(id); lessonB.RemoveLesson(lesson); return(RedirectToAction("Index")); }