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