public async Task AddAsync(Playlist playlist)
 {
     _database.Playlists.Add(playlist);
     await _database.SaveChangesAsync();
 }
 public async Task AddAsync(Authenticator authenticator)
 {
     _database.Authenticators.Add(authenticator);
     await _database.SaveChangesAsync();
 }
示例#3
0
 public async Task AddAsync(Song song)
 {
     _database.Songs.Add(song);
     await _database.SaveChangesAsync();
 }