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