// GET: Schedules public ActionResult Index(int id) { ViewBag.Id = id; return(View(db.ScheduleAllowDelete(id).ToList())); }