I\'m trying to make a method that takes an argument of Country.class, User.class etc, and returns argument.count().
Country.class
User.class
argument.count()
All the po
In the line
renderArgs.put("countryCount", countModel(Country.class));
you call countModel with a Class, but you have to call it with an instance of Country like this:
countModel
Class
Country
Country country = new Country(); renderArgs.put("countryCount", countModel( country );