public async Task <Person> InsertPerson(Person person) { var new_person = await personRepository.InsertPerson(person); await mediumRepository.StoreMedia(new_person, person.Media); return(new_person); }
public async Task <Artist> InsertArtist(Artist artist) { var new_artist = await artistRepository.InsertArtist(artist); await mediumRepository.StoreMedia(new_artist, artist.Media); return(new_artist); }
public async Task <Song> InsertSong(Song song) { var new_song = await songRepository.InsertSong(song); await mediumRepository.StoreMedia(new_song, song.Media); return(new_song); }