title: Correct usage of await async in webapi
body: <p>I have a WebApi that for each incoming request, calls 2 separate webservices, performs some post processing and returns the results. </p>
  
  <p>The first webservice call is cached locally for 1 hour, and the data in this determines the query to the 2nd webservice. The 2nd webservice is called on each incoming request. After that 2nd request is made, each result is processed with business logic and returned back to the client response.</p>
  
  <p>The call to the 2nd webservice cannot be asynchronous because it is using a 3rd party dll that does not allow the await keyword. What I've done, is wrapped the 2nd webservice call and post processing into one async function, which is called from the controller.</p>
  
  <pre><code>// /api/controller/news?key=a&amp;state=b
  public async Task&lt;HttpResponseMessage&gt; GetNews(string key, string state)
      {
           // call to first webservice if not in cache
           if (JsonConfig != null &amp;&amp; JsonConfig.Configuration.NewsQuery.ContainsKey(key))
          { 
              var results = await SearchProxyProvider.Search(filters.All, filters.Any, filters.None, filters.Sort, 100, 0, true, state, true);
              int totalCount = results.TotalCount;
  
              return Request.CreateResponse(HttpStatusCode.OK, results);
          }
      }
  
  
  // Helper class method
  public async Task&lt;ItemCollection&lt;Item&gt;&gt; Search(List&lt;FieldValuePair&gt; allFilters, List&lt;FieldValuePair&gt; anyFilters, List&lt;FieldValuePair&gt; noneFilters, SortedFieldDictionary sortBy, int pageSize = 100, int pageNumber = 0, bool exact = true, string stateFilter = null, bool getAllResults = true)
          {
              // call to 2nd api
              search = SomeApi.Search(allFilters, anyFilters, noneFilters, pageSize, pageNumber, exact,
                                                 sortBy, null, WebApiConstant.Settings.CustomFields, true);
  
              // post processing on search results
              return search;
          }
  </code></pre>
  
  <p>Because the call to the first webservice is cached locally, I don't really see a huge benefit to making this asynchronous.</p>
  
  <p>I'm just looking to see if this approach is totally wrong, or right.</p>