Пример #1
0
 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));
 }
Пример #2
0
 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));
 }