public ActionResult Edit([Bind(Include = "ID,Artist,AlbumName,CoverArt,ReleaseDate")] Albums albums) { if (ModelState.IsValid) { db.Entry(albums).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(albums)); }
public ActionResult Edit([Bind(Include = "ID,SongName")] Songs songs) { if (ModelState.IsValid) { db.Entry(songs).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(songs)); }