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