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