public ActionResult Edit(OtherExam otherExam) { if (ModelState.IsValid) { db.Entry(otherExam).State = EntityState.Modified; var response = DBHelper.SaveChanges(db); if (response.Succeeded) { return(RedirectToAction("Index")); } ModelState. AddModelError( string.Empty, response.Message); } return(View(otherExam)); }