title: How to implement Async Task to fetch data from database using async and await?
body: <p>I am doing this. It's working but is this a recommended way to do this. Please comments</p>
  
  <pre><code>public async void LoadData()
  {
      DataTable  dtAdditionsDetails = await LoadReportData(importID,
                                               InkeyCommon.ToInt32(cmbSellers.SelectedValue),
                                               fromDate,
                                               toDate);
      if (dtAdditionsDetails != null)
        dtaGrdAdditions.ItemSource = dtAdditionsDetails.DefaultView;
  } 
  
  public async Task&lt;DataTable&gt; LoadReportData(int? importID,
                                          int sellerID,
                                          DateTime? fromDate,
                                          DateTime? toDate)
  {
      DataTable dtAdditionsDetails = new DataTable();
  
      //Get Report Data                                             
      await Task.Delay(1);
  
      dtAdditionsDetails = ReportsData.GetRptAdditions(importID,
                                    sellerID,
                                    fromDate,
                                    toDate);
  
      return dtAdditionsDetails;
  }
  </code></pre>