예제 #1
0
        public async Task <Person> InsertPerson(Person person)
        {
            var new_person = await personRepository.InsertPerson(person);

            await mediumRepository.StoreMedia(new_person, person.Media);

            return(new_person);
        }
예제 #2
0
        public async Task <Artist> InsertArtist(Artist artist)
        {
            var new_artist = await artistRepository.InsertArtist(artist);

            await mediumRepository.StoreMedia(new_artist, artist.Media);

            return(new_artist);
        }
예제 #3
0
        public async Task <Song> InsertSong(Song song)
        {
            var new_song = await songRepository.InsertSong(song);

            await mediumRepository.StoreMedia(new_song, song.Media);

            return(new_song);
        }