protected Foto RecuperaFoto(int idFoto) { try { var cow = new GestioneCowBoy(ConnectionString); return(cow.GetFotoByIdFoto(idFoto)); } catch (Exception ex) { this.GetAlert(this.GetType(), ex.Message); return(null); } }