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