Exemplo n.º 1
0
 public void FillDataTable(IResponse response, string sql, Action <DataTable> action, bool clearParams = false)
 {
     if (!this.OpenConnection())
     {
         response.ConfigureConnectionFailure();
     }
     else
     {
         using (DataTable dt = this.GetDataTable(sql, clearParams))
         {
             action.Invoke(dt);
         }
     }
 }