public List <Trading> NewFeed(int page) { int numPage = tradingdao.getPages(); page = page > numPage ? numPage : page; List <Trading> tradings = tradingdao.getLastedTrading(page); return(tradings); }