public ActionResult Edit([Bind(Include = "lname")] Location location) { if (ModelState.IsValid) { db.Entry(location).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.lname = new SelectList(db.Choices, "cname", "cname", location.lname); return(View(location)); }