Example #1
0
 public ActionResult DeleteConfirmed(int id)
 {
     //Album album = db.Albums.Find(id);
     //db.Albums.Remove(album);
     //db.SaveChanges();
     repositorioAlbuns.ExcluirPorID(id);
     return(RedirectToAction("Index"));
 }
Example #2
0
 public ActionResult DeleteConfirmed(long id)
 {
     //Musica musica = db.Musicas.Find(id);
     //db.Musicas.Remove(musica);
     //db.SaveChanges();
     repositorioMusicas.ExcluirPorID(id);
     return(RedirectToAction("Index"));
 }