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