public ActionResult DelScheduleDate(int ID) { using (var ctx = new CSEntities()) { ctx.DelScheduleDate(ID, Int32.Parse(Session["ID"].ToString())); return(RedirectToAction("Schedule", "Home")); } }