public ActionResult Edit([Bind(Include = "bookingid,sid,cid,noofseats,totalamount")] moviebooking moviebooking) { if (ModelState.IsValid) { db.Entry(moviebooking).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.cid = new SelectList(db.customers, "cid", "cname", moviebooking.cid); ViewBag.sid = new SelectList(db.Screens, "sid", "sid", moviebooking.sid); return(View(moviebooking)); }