Example #1
0
 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));
 }