log.info("Returning "+sells);
return dtos;
}
private SellDto sellToDto(Sell sell) {
SellDto dto = new SellDto();
dto.setBuyBadge(sell.getBuyBadge());
dto.setCity(sell.getCity());
dto.setCommission(sell.getCommission());
dto.setCountry(sell.getCountry());
dto.setEmail(sell.getEmail());
dto.setSellBadge(sell.getSellBadge());
try {
dto.setRate(getRate(dto.getSellBadge(), dto.getBuyBadge()));
} catch (IOException e) {
log.log(Level.WARNING, "Error connecting with currency converter", e);
}
return dto;