public ActionResult Edit(AttorneyEducation attorneyeducation) { if (ModelState.IsValid) { db.Entry(attorneyeducation).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(attorneyeducation); }
public ActionResult Create(AttorneyEducation attorneyeducation) { if (ModelState.IsValid) { db.AttorneyEducations.Add(attorneyeducation); db.SaveChanges(); return RedirectToAction("Index"); } return View(attorneyeducation); }