public ActionResult Edit([Bind(Include = "AlbumID,Genere,Artist,Title")] Album album) { if (ModelState.IsValid) { db.Entry(album).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(album)); }
public ActionResult Edit([Bind(Include = "AlbumID,Genere,Artist,Title")] Album album) { if (ModelState.IsValid) { db.Entry(album).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(album)); }