title: How to use System.Action with return type?
body: <p>In the BLL class, I have written:</p>
  
  <pre><code>Private List&lt;T&gt; GetData(string a, string b)
  {
     TryAction(()=&gt;{
        //Call BLL Method to retrieve the list of BO.
         return BLLInstance.GetAllList(a,b);
      });
  }
  </code></pre>
  
  <p>In the BLL Base Class, I have a method:</p>
  
  <pre><code>protected void TryAction(Action action)
  {
   try
   {
     action();
   }
   catch(Exception e)
   {
     // write exception to output (Response.Write(str))
   }
  }
  </code></pre>
  
  <p>How can I use <code>TryAction()</code> method with generic return type?
  please have a suggestion.</p>