Esempio n. 1
0
 // Find all albums.
 public List<Album> allAlbums() {
   return albums.allAlbums();
 }
Esempio n. 2
0
 // Remove the album with `id`.
 public Album removeAlbum(Integer id) {
   return albums.removeAlbum(id);
 }
Esempio n. 3
0
 // Find an Album by its id.
 public Album findAlbum(Integer id) {
   return albums.findAlbum(id);
 }
Esempio n. 4
0
 // Replace the album with `id` using the content of `album`.
 public Album editAlbum(Integer id, Album album) {
   return albums.editAlbum(id, album);
 }
Esempio n. 5
0
 // Create a new Album.
 public Album createAlbum(
     String title, String artist, Boolean inStock, Double price, Integer year) {
   return albums.createAlbum(title, artist, inStock, price, year);
 }