public ActionResult Updatebook(tblBooking E) { tblBooking s = (tblBooking)Session["opp"]; // retrieving that object by session variable so we can retrieve booking id by this string m = Dbclass.GetbookData(E, s); //here updation is done ViewBag.msg = m; return(View("bookingupdate")); }