public ActionResult Edit(Question question) { if (ModelState.IsValid) { db.Entry(question).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(question)); }
public ActionResult Edit(TestModel testmodel) { if (ModelState.IsValid) { db.Entry(testmodel).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(testmodel)); }
public ActionResult Edit(AnswerVariant answervariant) { if (ModelState.IsValid) { db.Entry(answervariant).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(answervariant)); }