public List<Fotos> buscarFotosPorAlbum(Album_fotos album) { try { return daoFotos.searchByAlbum(album.Id); } catch (Exception ex) { throw ex; } }
public int nuevoAlbum(string mensaje, int usuario_origen) { Album_fotos album; try { album = new Album_fotos(mensaje, usuario_origen); return daoAlbum.add(album); } catch (Exception ex) { throw ex; } }
private void btnGuardarAlbum_Click(object sender, EventArgs e) { try { Album_fotos nuevoAlbum = new Album_fotos(albumNameTXT.Text, Session.IdUsuarioLogueado); } catch (Exception ex) { MessageBox.Show("no se guardar el album" + ex.Message); } }
public Fotos(string url, Album_fotos album) { this.url = url; this.AlbumId = album.Id; }