public ActionResult Create([Bind(Include = "assignment_id,title")] assignment assignment) { if (ModelState.IsValid) { //db.assignments.Add(assignment); //db.SaveChanges(); db.Save(assignment); return(RedirectToAction("Index")); } // ViewBag.course_id = new SelectList(db.courses, "course_id", "course_name", assignment.course_id); return(View("Create", assignment)); }