public static void getNexts() { List<Creativo> creativos = Creativo.find("rank = 0").fetch(); List<Business> business = Business.find("rank = 0").fetch(); render(creativos, business); }
public static void getRank() { List<Creativo> creativos = Creativo.find("rank <> 0 order by rank desc").fetch(); List<Business> business = Business.find("rank <> 0 order by rank desc").fetch(); render(creativos, business); }