title: Generic way of exception handling
body: <pre><code>catch(Exception ex)
  </code></pre>
  
  <p>//code being sent to database table to log is - </p>
  
  <blockquote>
    <p>ex.ToString()</p>
  </blockquote>
  
  <p>The parameters are not being sent.</p>
  
  <pre><code>private int GetAge (int ID)
  {
  
  }
  
  private string GetName (int ID)
  {
  
  }
  </code></pre>
  
  <p>How do i write in a generic way so that all the methods can have parameters concatenated with exception(ex.ToString)? Is there any generic approach(for winforms)?</p>