private void btnCreate_Click(object sender, RoutedEventArgs e) { Album album = new Album(txtAlbumName.Text); album.Initialize(); album.Save(); foreach (var pic in _pictres) { pic.IdAlbum = album.Id; pic.Initialize(); pic.Save(); } }
private void btnCreate_Click(object sender, RoutedEventArgs e) { Album album = new Album(txtAlbumName.Text); album.Initialize(); album.Save(); foreach (var pic in _pictres) { pic.IdAlbum = album.Id; pic.Initialize(); pic.Save(); } }