public ActionResult Edit(Visit visit) { dbv.Entry(visit).State = System.Data.Entity.EntityState.Modified; dbv.SaveChanges(); return(RedirectToAction("Index", new { id = Session["userID"] })); }