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