title: reuse Criteria in Grails Controller
body: <p>typically you have the following last line in a Grails generated Controller list method:</p>
  
  <pre><code>[userInstanceList: User.list(params), userInstanceTotal: User.count()]
  </code></pre>
  
  <p>if I want to restrict the users by a specific criteria it looks like</p>
  
  <pre><code>[userInstanceList: User.list(params) {
     ilike('login', '%test%')
   }, userInstanceTotal: User.count() {
     ilike('login', '%test%')
   }]
  </code></pre>
  
  <p>but this violates the DRY principle - what would be the best way to reuse the criteria closure?</p>