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