title: How to return value from Action()?
body: <p>In regards to the answer for this question <a href="https://stackoverflow.com/questions/8098950/passing-datacontext-into-action">Passing DataContext into Action()</a>, how do I return a value from action(db)?</p>
  
  <pre><code>SimpleUsing.DoUsing(db =&gt; { 
  // do whatever with db 
  }); 
  </code></pre>
  
  <p>Should be more like:</p>
  
  <pre><code>MyType myType = SimpleUsing.DoUsing&lt;MyType&gt;(db =&gt; { 
  // do whatever with db.  query buit using db returns MyType.
  }); 
  </code></pre>