public ActionResult Edit(member teamModel) { using (ModelsCMS db = new ModelsCMS()) { db.Entry(teamModel).State = System.Data.EntityState.Modified; db.SaveChanges(); } return(RedirectToAction("Index")); }
public ActionResult Edit(conference_event ConferenceModel) { using (ModelsCMS db = new ModelsCMS()) { db.Entry(ConferenceModel).State = System.Data.EntityState.Modified; db.SaveChanges(); } return(RedirectToAction("Index")); }